Spaces:
Sleeping
Sleeping
Fix pparam type
Browse files
app.py
CHANGED
@@ -22,10 +22,11 @@ with gr.Blocks() as demo:
|
|
22 |
|
23 |
n = gr.Number(label="MaxNums", value=10)
|
24 |
s = gr.Number(label="sleep", value=0)
|
|
|
25 |
|
26 |
result = gr.Text();
|
27 |
|
28 |
-
btn.click( Op1, [
|
29 |
btn2.click( Op2, [n,s], [result] )
|
30 |
|
31 |
|
|
|
22 |
|
23 |
n = gr.Number(label="MaxNums", value=10)
|
24 |
s = gr.Number(label="sleep", value=0)
|
25 |
+
t = gr.Text(label="Texto qualquer")
|
26 |
|
27 |
result = gr.Text();
|
28 |
|
29 |
+
btn.click( Op1, [t], [result] )
|
30 |
btn2.click( Op2, [n,s], [result] )
|
31 |
|
32 |
|