panik commited on
Commit
ef1f4cf
·
1 Parent(s): fe6212a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  #import keras
4
 
5
  def get_digit(digit_choice):
6
- if(digit_choice == '1'):
7
  return 'one'
8
  else:
9
  return 'not one'
@@ -13,9 +13,9 @@ gr.Interface(
13
  #inputs='image',
14
  #inputs=[gr.inputs.Image(label="Input Image", source="webcam")],
15
  inputs = [
16
- #gr.inputs.Dropdown(['1', '2', '3'], type='index'),
17
  #gr.inputs.Number()
18
- 'text'
19
  ],
20
  #outputs='image',
21
  outputs='text',
 
3
  #import keras
4
 
5
  def get_digit(digit_choice):
6
+ if(digit_choice == 1):
7
  return 'one'
8
  else:
9
  return 'not one'
 
13
  #inputs='image',
14
  #inputs=[gr.inputs.Image(label="Input Image", source="webcam")],
15
  inputs = [
16
+ gr.inputs.Dropdown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), #type='index'),
17
  #gr.inputs.Number()
18
+ #'text'
19
  ],
20
  #outputs='image',
21
  outputs='text',