Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|