foxtrot126 commited on
Commit
5723f8a
·
verified ·
1 Parent(s): 1dfb058

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -68,10 +68,8 @@ inputs = [
68
  ]
69
  outputs = gr.Textbox(label="Answer")
70
  # Create the Gradio app
71
- demo = gr.Interface(fn=process_image, inputs=inputs, outputs=outputs, title="Visual Question Answering", description="Upload an image and ask questions to get answers.")
72
- # Launch the app
73
- demo.launch(share='true')
74
 
75
- demo2 = gr.Interface(fn=process_image2, inputs=inputs, outputs=outputs, title="Visual Question Answering", description="Upload an image and ask questions to get answers.")
76
- # Launch the app
77
- demo2.launch(share='true')
 
68
  ]
69
  outputs = gr.Textbox(label="Answer")
70
  # Create the Gradio app
71
+ model1_inf = gr.Interface(fn=process_image, inputs=inputs, outputs=outputs, title="Visual Question Answering", description="Upload an image and ask questions to get answers.")
72
+ model2_inf = gr.Interface(fn=process_image2, inputs=inputs, outputs=outputs, title="Visual Question Answering", description="Upload an image and ask questions to get answers.")
 
73
 
74
+ demo = gr.TabbedInterface([model1_inf, model2_inf],["Model 1", "Model 2"])
75
+ demo.launch()