Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,10 @@ def guess (num):
|
|
10 |
return r
|
11 |
with gr.Bloks() as myApp:
|
12 |
with gr.Row():
|
13 |
-
|
14 |
inp = gr.Radio(choices=list (range (10)),label='เลือก 1 หมายเลข')
|
15 |
with gr.Column (scale=1):
|
16 |
out = gr. Textbox(label='ผลลัพธ์')
|
17 |
inp.change(guess,inp,out)
|
18 |
-
|
19 |
myApp.launch()
|
|
|
10 |
return r
|
11 |
with gr.Bloks() as myApp:
|
12 |
with gr.Row():
|
13 |
+
with gr.Column(scaia=1):
|
14 |
inp = gr.Radio(choices=list (range (10)),label='เลือก 1 หมายเลข')
|
15 |
with gr.Column (scale=1):
|
16 |
out = gr. Textbox(label='ผลลัพธ์')
|
17 |
inp.change(guess,inp,out)
|
18 |
+
btn.click(fn=answer,outputs=out)
|
19 |
myApp.launch()
|