Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -575,12 +575,14 @@ try:
|
|
| 575 |
ask_btn.click(
|
| 576 |
wrapped_chat,
|
| 577 |
inputs=[text_inp, image_inp, audio_inp, chat, user_state, username_inp],
|
| 578 |
-
outputs=[chat, user_state
|
| 579 |
concurrency_limit=4,
|
| 580 |
)
|
| 581 |
|
| 582 |
-
#
|
| 583 |
-
|
|
|
|
|
|
|
| 584 |
|
| 585 |
|
| 586 |
except Exception as e:
|
|
|
|
| 575 |
ask_btn.click(
|
| 576 |
wrapped_chat,
|
| 577 |
inputs=[text_inp, image_inp, audio_inp, chat, user_state, username_inp],
|
| 578 |
+
outputs=[chat, user_state],
|
| 579 |
concurrency_limit=4,
|
| 580 |
)
|
| 581 |
|
| 582 |
+
# On Hugging Face Spaces localhost may be inaccessible from the container; create a shareable link.
|
| 583 |
+
# Using share=True here forces Gradio to create a public tunnel which Spaces allows.
|
| 584 |
+
demo.launch(share=True)
|
| 585 |
+
|
| 586 |
|
| 587 |
|
| 588 |
except Exception as e:
|