sansanee commited on
Commit
4b19de1
1 Parent(s): c398761

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- r = 'ทายถูกแล้ว'
8
- else :
9
- r = 'ลองกดใหม่นะ'
10
- return r
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: