Petcharat commited on
Commit
8586fa0
·
1 Parent(s): 1631332

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -11,10 +11,10 @@ def guess(num):
11
  def ansver():
12
  return 'เลขที่สุ่มได้ คือ '+str(rand)
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='เลือก 1 หมายเลข')
17
- btn = gr.Button(value="เฉลย")
18
  with gr.Column(scole=1):
19
  out = gr.Textbox(label='ผลลัพธ์')
20
  inp.change(guess,inp,out)
 
11
  def ansver():
12
  return 'เลขที่สุ่มได้ คือ '+str(rand)
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='เลือก 1 หมายเลข')
17
+ btn = gr.Button(value="เฉลย")
18
  with gr.Column(scole=1):
19
  out = gr.Textbox(label='ผลลัพธ์')
20
  inp.change(guess,inp,out)