Update app1.py
Browse files
app1.py
CHANGED
@@ -11,12 +11,25 @@ def test(x, request: gr.Request, progress=gr.Progress()):
|
|
11 |
return gr.Textbox(a)
|
12 |
|
13 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
t = gr.Textbox()
|
15 |
b = gr.Button()
|
16 |
f = gr.File()
|
|
|
17 |
|
18 |
b.click(test, t, t)
|
19 |
t.submit(test, t, t)
|
20 |
-
|
21 |
|
22 |
demo.launch()
|
|
|
11 |
return gr.Textbox(a)
|
12 |
|
13 |
with gr.Blocks() as demo:
|
14 |
+
|
15 |
+
with gr.Column(variant="panel") as row:
|
16 |
+
selected = gr.Dataframe(
|
17 |
+
interactive=False,
|
18 |
+
col_count=(1, "fixed"),
|
19 |
+
headers=["Selected Files"],
|
20 |
+
)
|
21 |
+
prog = gr.HTML(
|
22 |
+
value="<h3 style='text-align: center'> Processing...<h1>"
|
23 |
+
)
|
24 |
+
gr.interface(test, selected, prog)
|
25 |
+
|
26 |
t = gr.Textbox()
|
27 |
b = gr.Button()
|
28 |
f = gr.File()
|
29 |
+
|
30 |
|
31 |
b.click(test, t, t)
|
32 |
t.submit(test, t, t)
|
33 |
+
|
34 |
|
35 |
demo.launch()
|