Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -248,7 +248,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
| 248 |
input_image = gr.Image(label="Image Input", type="filepath", sources=["upload", "clipboard"], elem_id="input_image_upload")
|
| 249 |
input_audio = gr.Audio(label="Audio Input", type="filepath", sources=["upload", "microphone"], elem_id="input_audio_upload")
|
| 250 |
with gr.Row():
|
| 251 |
-
|
|
|
|
| 252 |
input_model3d = gr.Model3D(label="3D Model Input", type="filepath", elem_id="input_model3d_upload")
|
| 253 |
with gr.Row():
|
| 254 |
input_file = gr.File(label="Generic File Input", type="filepath", elem_id="input_file_upload")
|
|
@@ -268,7 +269,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
| 268 |
|
| 269 |
submit_button.click(
|
| 270 |
fn=gradio_interface,
|
| 271 |
-
inputs=[prompt_input, input_image, input_audio, input_video,
|
| 272 |
outputs=[image_output, file_output, path_output, audio_output, model3d_output, text_output]
|
| 273 |
)
|
| 274 |
|
|
@@ -284,4 +285,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
| 284 |
)
|
| 285 |
|
| 286 |
if __name__ == "__main__":
|
| 287 |
-
app.launch(debug=True)
|
|
|
|
| 248 |
input_image = gr.Image(label="Image Input", type="filepath", sources=["upload", "clipboard"], elem_id="input_image_upload")
|
| 249 |
input_audio = gr.Audio(label="Audio Input", type="filepath", sources=["upload", "microphone"], elem_id="input_audio_upload")
|
| 250 |
with gr.Row():
|
| 251 |
+
# Removed type="filepath" from gr.Video
|
| 252 |
+
input_video = gr.Video(label="Video Input", sources=["upload"], elem_id="input_video_upload")
|
| 253 |
input_model3d = gr.Model3D(label="3D Model Input", type="filepath", elem_id="input_model3d_upload")
|
| 254 |
with gr.Row():
|
| 255 |
input_file = gr.File(label="Generic File Input", type="filepath", elem_id="input_file_upload")
|
|
|
|
| 269 |
|
| 270 |
submit_button.click(
|
| 271 |
fn=gradio_interface,
|
| 272 |
+
inputs=[prompt_input, input_image, input_audio, input_video, input_3d_model_path, input_file],
|
| 273 |
outputs=[image_output, file_output, path_output, audio_output, model3d_output, text_output]
|
| 274 |
)
|
| 275 |
|
|
|
|
| 285 |
)
|
| 286 |
|
| 287 |
if __name__ == "__main__":
|
| 288 |
+
app.launch(debug=True)
|