Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,9 +62,15 @@ def get_results(image):
|
|
62 |
image_input = gr.inputs.Image() # Adjust the shape according to your requirements
|
63 |
|
64 |
# Define the output components for Gradio
|
65 |
-
output_components = [
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
# Launch the Gradio interface
|
70 |
gr.Interface(fn=get_results, inputs=image_input, outputs=output_components).launch(share=False)
|
|
|
62 |
image_input = gr.inputs.Image() # Adjust the shape according to your requirements
|
63 |
|
64 |
# Define the output components for Gradio
|
65 |
+
output_components = [
|
66 |
+
gr.outputs.Textbox(label="First Name"),
|
67 |
+
gr.outputs.Textbox(label="Second Name"),
|
68 |
+
gr.outputs.Textbox(label="Address 1"),
|
69 |
+
gr.outputs.Textbox(label="Address 2"),
|
70 |
+
gr.outputs.Textbox(label="National ID Number"),
|
71 |
+
gr.outputs.Textbox(label="Time of Response"),
|
72 |
+
gr.outputs.Textbox(label="Request Info"),
|
73 |
+
]
|
74 |
|
75 |
# Launch the Gradio interface
|
76 |
gr.Interface(fn=get_results, inputs=image_input, outputs=output_components).launch(share=False)
|