Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,9 +46,8 @@ def get_results(image):
|
|
46 |
return [firstName, secondName, address1, address2, nationalIdNumber, timeOfResponse, requestInfo]
|
47 |
|
48 |
# Define the input and output components for Gradio
|
49 |
-
image_input = gr.inputs.Image()
|
50 |
-
|
51 |
-
output_component = gr.outputs.Label(num_top_classes=len(output_labels), labels=output_labels)
|
52 |
|
53 |
# Launch the Gradio interface
|
54 |
-
gr.Interface(fn=get_results, inputs=image_input, outputs=output_component).launch()
|
|
|
46 |
return [firstName, secondName, address1, address2, nationalIdNumber, timeOfResponse, requestInfo]
|
47 |
|
48 |
# Define the input and output components for Gradio
|
49 |
+
image_input = gr.inputs.Image() # Adjust the shape according to your requirements
|
50 |
+
output_component = gr.outputs.Label(num_top_classes=len(output_labels))
|
|
|
51 |
|
52 |
# Launch the Gradio interface
|
53 |
+
gr.Interface(fn=get_results, inputs=image_input, outputs=output_component).launch()
|