Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,10 @@ rand = rd.randint(0,9)
|
|
4 |
def guess(num):
|
5 |
num = int(num)
|
6 |
if num == rand:
|
7 |
-
|
8 |
else:
|
9 |
-
|
10 |
-
|
11 |
def answer():
|
12 |
return 'เลขที่สุ่มได้ คือ'+str(rand)
|
13 |
with gr.Blocks() as myApp:
|
|
|
4 |
def guess(num):
|
5 |
num = int(num)
|
6 |
if num == rand:
|
7 |
+
r = 'ทายถูกเเล้ว'
|
8 |
else:
|
9 |
+
r = 'ลองกดใหม่นะ'
|
10 |
+
return r
|
11 |
def answer():
|
12 |
return 'เลขที่สุ่มได้ คือ'+str(rand)
|
13 |
with gr.Blocks() as myApp:
|