Spaces:
Runtime error
Runtime error
Sasimon8987
commited on
Commit
•
1688c28
1
Parent(s):
2c54e32
Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,10 @@ def guess(num):
|
|
13 |
with gr.Blocks() as myApp:
|
14 |
with gr.Row():
|
15 |
with gr.Column(scale=1):
|
16 |
-
|
17 |
-
|
18 |
with gr.Column(scale=1):
|
19 |
-
|
20 |
inp.change(guess,inp,out)
|
21 |
btn.click(fn=answer,outputs=out)
|
22 |
myApp.launch()
|
|
|
13 |
with gr.Blocks() as myApp:
|
14 |
with gr.Row():
|
15 |
with gr.Column(scale=1):
|
16 |
+
inp =gr.Radio(choices=list(range(10)),label='เลือกตัวเลข')
|
17 |
+
btn =gr.Button(value='เฉลย')
|
18 |
with gr.Column(scale=1):
|
19 |
+
out=gr.Textbox(label='ผลลัพธ์')
|
20 |
inp.change(guess,inp,out)
|
21 |
btn.click(fn=answer,outputs=out)
|
22 |
myApp.launch()
|