Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ 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:
|
|
|
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:
|