Spaces:
Sleeping
Sleeping
fix v2
Browse files
app.py
CHANGED
@@ -20,12 +20,13 @@ with gr.Blocks() as demo:
|
|
20 |
btn = gr.Button("Op1");
|
21 |
btn2 = gr.Button("Op2");
|
22 |
|
23 |
-
n = gr.Number(value=10)
|
|
|
24 |
|
25 |
result = gr.Text();
|
26 |
|
27 |
btn.click( Op1, [n], [result] )
|
28 |
-
btn2.click( Op2, [n], [result] )
|
29 |
|
30 |
|
31 |
if __name__ == "__main__":
|
|
|
20 |
btn = gr.Button("Op1");
|
21 |
btn2 = gr.Button("Op2");
|
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, [n], [result] )
|
29 |
+
btn2.click( Op2, [n,s], [result] )
|
30 |
|
31 |
|
32 |
if __name__ == "__main__":
|