Spaces:
Sleeping
Sleeping
Update helper.py
Browse files
helper.py
CHANGED
@@ -132,7 +132,7 @@ def registry(name: str = None, **kwargs) -> gr.ChatInterface:
|
|
132 |
# Collect the generated response
|
133 |
response = ""
|
134 |
for partial_response in response_generator:
|
135 |
-
response
|
136 |
yield response
|
137 |
|
138 |
# Create the Gradio ChatInterface with the wrapper function
|
|
|
132 |
# Collect the generated response
|
133 |
response = ""
|
134 |
for partial_response in response_generator:
|
135 |
+
response = partial_response # Gradio will handle streaming
|
136 |
yield response
|
137 |
|
138 |
# Create the Gradio ChatInterface with the wrapper function
|