sayedM commited on
Commit
28b5044
·
1 Parent(s): 61a7146

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
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
- for label in ["First Name", "Second Name", "Address 1", "Address 2", "National ID Number", "Time of Response", "Request Info"]:
67
- output_components.append(gr.Textbox(label=label))
 
 
 
 
 
 
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)