Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,7 +196,7 @@ def run_gpt_model(prompt: str, api_key: str) -> str:
|
|
| 196 |
stream=True
|
| 197 |
)
|
| 198 |
|
| 199 |
-
|
| 200 |
for chunk in response:
|
| 201 |
collected_chunks += chunk.choices[0].delta.content or ""
|
| 202 |
print(chunk.choices[0].delta.content or "",end="")
|
|
|
|
| 196 |
stream=True
|
| 197 |
)
|
| 198 |
|
| 199 |
+
collected_chunks = ""
|
| 200 |
for chunk in response:
|
| 201 |
collected_chunks += chunk.choices[0].delta.content or ""
|
| 202 |
print(chunk.choices[0].delta.content or "",end="")
|