Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,10 +68,8 @@ inputs = [
|
|
| 68 |
]
|
| 69 |
outputs = gr.Textbox(label="Answer")
|
| 70 |
# Create the Gradio app
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
demo.launch(share='true')
|
| 74 |
|
| 75 |
-
|
| 76 |
-
|
| 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()
|
|
|