playing around with gradio
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ demo = gr.Blocks()
|
|
29 |
with demo:
|
30 |
with gr.Tabs():
|
31 |
with gr.TabItem("Greedy Search"):
|
32 |
-
gr.
|
33 |
with gr.TabItem("Sample"):
|
34 |
gr.Button("New Tiger")
|
35 |
with gr.TabItem("Beam Search"):
|
@@ -41,9 +41,9 @@ with demo:
|
|
41 |
["Transformers Version", "4.22.dev0"],
|
42 |
["TensorFlow Version", "2.9.1"],
|
43 |
["Pytorch Version", "1.11.0"],
|
44 |
-
["OS", "22.04 LTS (3090) / Debian 10 (
|
45 |
-
["CUDA", "11.6 (3090) / 11.3 (others)"],
|
46 |
-
["Is there code?", "Yes -- https://gist.github.com/gante/f0017e3f13ac11b0c02e4e4db351f52f"],
|
47 |
],
|
48 |
)
|
49 |
|
|
|
29 |
with demo:
|
30 |
with gr.Tabs():
|
31 |
with gr.TabItem("Greedy Search"):
|
32 |
+
gr.Dropdown(["DistilGPT2", "GPT2", "OPT 1.3B", "GPTJ-6B", "T5 small", "T5 base", "T5 large", "T5 3B"])
|
33 |
with gr.TabItem("Sample"):
|
34 |
gr.Button("New Tiger")
|
35 |
with gr.TabItem("Beam Search"):
|
|
|
41 |
["Transformers Version", "4.22.dev0"],
|
42 |
["TensorFlow Version", "2.9.1"],
|
43 |
["Pytorch Version", "1.11.0"],
|
44 |
+
["OS", "22.04 LTS (3090) / Debian 10 (other GPUs)"],
|
45 |
+
["CUDA", "11.6 (3090) / 11.3 (others GPUs)"],
|
46 |
+
["Is there code to reproduce?", "Yes -- https://gist.github.com/gante/f0017e3f13ac11b0c02e4e4db351f52f"],
|
47 |
],
|
48 |
)
|
49 |
|