Sazid2 commited on
Commit
7abafe2
·
verified ·
1 Parent(s): 7614637

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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, gr.State(None)],
579
  concurrency_limit=4,
580
  )
581
 
582
- # Launch without deprecated queue arguments. If you need more workers, set max_threads in launch().
583
- demo.launch()
 
 
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: