yasserrmd commited on
Commit
a9b9e4f
·
verified ·
1 Parent(s): 42ff9fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -54,7 +54,8 @@ with gr.Blocks() as app:
54
  button.click(
55
  fn=lambda *args: generate_response(prompt_template, **dict(zip([inp["key"] for inp in inputs], args))),
56
  inputs=input_fields,
57
- outputs=output
 
58
  )
59
 
60
  # Tabs for various functionalities
 
54
  button.click(
55
  fn=lambda *args: generate_response(prompt_template, **dict(zip([inp["key"] for inp in inputs], args))),
56
  inputs=input_fields,
57
+ outputs=output,
58
+ stream=True # Enable streaming for Gradio
59
  )
60
 
61
  # Tabs for various functionalities