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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -573,13 +573,15 @@ try:
573
  return chat_logic(username_inner, text, image, audio, history, user_state_inner)
574
 
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
- )
 
 
 
 
580
 
581
- # Remove explicit server_name (Spaces provides proper host). Launch normally.
582
- demo.queue(concurrency_count=4).launch()
583
 
584
  except Exception as e:
585
  # Write full traceback to a file for debugging in Spaces logs and print to stdout
 
573
  return chat_logic(username_inner, text, image, audio, history, user_state_inner)
574
 
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:
587
  # Write full traceback to a file for debugging in Spaces logs and print to stdout