Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ def generate_response(prompt_template, **kwargs):
|
|
21 |
|
22 |
# Wrapper function to combine generator output
|
23 |
def get_response(prompt_template, **kwargs):
|
24 |
-
|
|
|
25 |
|
26 |
# Gradio app interface
|
27 |
with gr.Blocks() as app:
|
|
|
21 |
|
22 |
# Wrapper function to combine generator output
|
23 |
def get_response(prompt_template, **kwargs):
|
24 |
+
for chunk in generate_response(prompt_template, **kwargs):
|
25 |
+
yield chunk
|
26 |
|
27 |
# Gradio app interface
|
28 |
with gr.Blocks() as app:
|