Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -393,6 +393,14 @@ def gradio_worker(
|
|
393 |
depth_tab.select(partial(change_modality, 'rgbd'), [], [modality])
|
394 |
normal_tab.select(partial(change_modality, 'rgbn'), [], [modality])
|
395 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
msg.submit(
|
397 |
show_user_input, [msg, chatbot], [msg, chatbot],
|
398 |
).then(
|
@@ -404,7 +412,6 @@ def gradio_worker(
|
|
404 |
stream_model_output, [img_path, audio_path, video_path, point_path, fmri_path, depth_path, depth_rgb_path, normal_path, normal_rgb_path, chatbot, max_gen_len, gen_t, top_p, modality], chatbot,
|
405 |
)
|
406 |
undo_button.click(undo, chatbot, chatbot)
|
407 |
-
# img_path.change(clear, [], [chatbot, msg])
|
408 |
barrier.wait()
|
409 |
demo.queue(api_open=True).launch(share=True, max_threads=1)
|
410 |
|
|
|
393 |
depth_tab.select(partial(change_modality, 'rgbd'), [], [modality])
|
394 |
normal_tab.select(partial(change_modality, 'rgbn'), [], [modality])
|
395 |
|
396 |
+
img_path.change(clear, [], [chatbot, msg])
|
397 |
+
audio_path.change(clear, [], [chatbot, msg])
|
398 |
+
video_path.change(clear, [], [chatbot, msg])
|
399 |
+
point_path.change(clear, [], [chatbot, msg])
|
400 |
+
fmri_path.change(clear, [], [chatbot, msg])
|
401 |
+
depth_path.change(clear, [], [chatbot, msg])
|
402 |
+
normal_path.change(clear, [], [chatbot, msg])
|
403 |
+
|
404 |
msg.submit(
|
405 |
show_user_input, [msg, chatbot], [msg, chatbot],
|
406 |
).then(
|
|
|
412 |
stream_model_output, [img_path, audio_path, video_path, point_path, fmri_path, depth_path, depth_rgb_path, normal_path, normal_rgb_path, chatbot, max_gen_len, gen_t, top_p, modality], chatbot,
|
413 |
)
|
414 |
undo_button.click(undo, chatbot, chatbot)
|
|
|
415 |
barrier.wait()
|
416 |
demo.queue(api_open=True).launch(share=True, max_threads=1)
|
417 |
|