fxnyyaaaaaa commited on
Commit
96e9489
1 Parent(s): 9b6c08e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,6 +1,13 @@
1
  import gradio as gr
2
  import random as rd
3
-
 
 
 
 
 
 
 
4
  with gr.Blocks() as myApp:
5
  with gr.Row():
6
  with gr.Column(scale=1):
 
1
  import gradio as gr
2
  import random as rd
3
+ rand = rd.randint(0,9)
4
+ def guess(num):
5
+ num = int(num)
6
+ if num == rand:
7
+ r = 'ทายถูกแล้ว'
8
+ else:
9
+ r = 'ลองกดใหม่นะ'
10
+ return r
11
  with gr.Blocks() as myApp:
12
  with gr.Row():
13
  with gr.Column(scale=1):