segestic commited on
Commit
1de93e3
·
verified ·
1 Parent(s): a15d89c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -58,9 +58,8 @@ def talk(prompt, history):
58
  return f"Error during response generation: {e}"
59
 
60
  # Gradio interface
61
- demo = gr.Interface(
62
  fn=talk,
63
- streaming=True, # ✅ Enables streaming from the generator
64
  chatbot=gr.Chatbot(
65
  show_label=True,
66
  show_share_button=True,
 
58
  return f"Error during response generation: {e}"
59
 
60
  # Gradio interface
61
+ demo = gr.ChatInterface(
62
  fn=talk,
 
63
  chatbot=gr.Chatbot(
64
  show_label=True,
65
  show_share_button=True,