Update app.py
Browse files
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.
|
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,
|