Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -105,7 +105,7 @@ def chat_with_llama_stream(messages, model="gpt-3.5-turbo", max_llm_history=4, m
|
|
| 105 |
)
|
| 106 |
|
| 107 |
full_response = ""
|
| 108 |
-
for event in
|
| 109 |
if "content" in event["choices"][0].delta:
|
| 110 |
current_response = event["choices"][0].delta.content
|
| 111 |
full_response +=current_response
|
|
|
|
| 105 |
)
|
| 106 |
|
| 107 |
full_response = ""
|
| 108 |
+
for event in response:
|
| 109 |
if "content" in event["choices"][0].delta:
|
| 110 |
current_response = event["choices"][0].delta.content
|
| 111 |
full_response +=current_response
|