abancp commited on
Commit
9cc709f
·
verified ·
1 Parent(s): d727d22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -11,9 +11,8 @@ with gr.Blocks() as demo:
11
  inp = gr.Textbox(label="Your Prompt", placeholder="Enter your message...", lines=3)
12
  out = gr.Textbox(label="Model Response", lines=10)
13
 
14
- # Stream response
15
  btn = gr.Button("Send")
16
- btn.click(chat_interface, inputs=inp, outputs=out)
17
 
18
  # Launch for Hugging Face Spaces
19
  demo.launch(share=True)
 
11
  inp = gr.Textbox(label="Your Prompt", placeholder="Enter your message...", lines=3)
12
  out = gr.Textbox(label="Model Response", lines=10)
13
 
 
14
  btn = gr.Button("Send")
15
+ btn.click(chat_interface, inputs=inp, outputs=out, streaming=True) # ✅ Set streaming=True)
16
 
17
  # Launch for Hugging Face Spaces
18
  demo.launch(share=True)