sayedM commited on
Commit
daba3dd
·
1 Parent(s): ba38597

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- output_labels = ["First Name", "Second Name", "Address 1", "Address 2", "National ID Number", "Time of Response", "Request Info"]
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()