Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,6 @@ def generate_response(prompt_template, **kwargs):
|
|
19 |
for chunk in stream:
|
20 |
yield chunk.choices[0].delta.content # Yield chunks as they are generated
|
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:
|
|
|
19 |
for chunk in stream:
|
20 |
yield chunk.choices[0].delta.content # Yield chunks as they are generated
|
21 |
|
|
|
|
|
|
|
|
|
22 |
|
23 |
# Gradio app interface
|
24 |
with gr.Blocks() as app:
|