Spaces:
Runtime error
Runtime error
peplexity
Browse files
app.py
CHANGED
|
@@ -243,12 +243,13 @@ def combine(question, audio, input_image):
|
|
| 243 |
|
| 244 |
|
| 245 |
model_interface = gr.Interface(fn=combine,
|
| 246 |
-
inputs=[gr.
|
| 247 |
-
gr.
|
| 248 |
-
gr.
|
| 249 |
-
outputs=[gr.
|
| 250 |
-
gr.
|
| 251 |
-
gr.
|
|
|
|
| 252 |
|
| 253 |
# image_upload_interface = gr.Interface(fn=upload_image, inputs=gr.Image(label="Upload the image"), outputs="text")
|
| 254 |
|
|
|
|
| 243 |
|
| 244 |
|
| 245 |
model_interface = gr.Interface(fn=combine,
|
| 246 |
+
inputs=[gr.inputs.Textbox(label="Text Question"),
|
| 247 |
+
gr.inputs.Microphone(label="Audio Question", type="audio", source="microphone"),
|
| 248 |
+
gr.inputs.Image(label="Upload the image")],
|
| 249 |
+
outputs=[gr.outputs.Text(label="Transcribed Question"),
|
| 250 |
+
gr.outputs.Text(label="Answer"),
|
| 251 |
+
gr.outputs.Audio(label="Audio Answer")])
|
| 252 |
+
|
| 253 |
|
| 254 |
# image_upload_interface = gr.Interface(fn=upload_image, inputs=gr.Image(label="Upload the image"), outputs="text")
|
| 255 |
|