Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 ==
|
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 |
-
|
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',
|