Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,14 +43,14 @@ def get_results(image):
|
|
43 |
char = data['char']
|
44 |
timeOfResponse = data['time']
|
45 |
requestInfo = data['info']
|
46 |
-
return [num, char,
|
47 |
|
48 |
# Define the input component for Gradio
|
49 |
image_input = gr.inputs.Image() # Adjust the shape according to your requirements
|
50 |
|
51 |
# Define the output components for Gradio
|
52 |
output_components = []
|
53 |
-
for label in ["Numbers", "char", "
|
54 |
output_components.append(gr.outputs.Textbox(label=label))
|
55 |
|
56 |
# Launch the Gradio interface
|
|
|
43 |
char = data['char']
|
44 |
timeOfResponse = data['time']
|
45 |
requestInfo = data['info']
|
46 |
+
return [num, char, requestInfo]
|
47 |
|
48 |
# Define the input component for Gradio
|
49 |
image_input = gr.inputs.Image() # Adjust the shape according to your requirements
|
50 |
|
51 |
# Define the output components for Gradio
|
52 |
output_components = []
|
53 |
+
for label in ["Numbers", "char", "Request Info"]:
|
54 |
output_components.append(gr.outputs.Textbox(label=label))
|
55 |
|
56 |
# Launch the Gradio interface
|