Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def chat_with_openai(message: str, history: list, temperature: float, max_new_to
|
|
118 |
display_text = "" # Cumulative text that has been finalized and yielded.
|
119 |
think_detected = False
|
120 |
full_response = "" # Accumulates the full raw response (without replacements applied).
|
121 |
-
|
122 |
# Process streaming responses.
|
123 |
for chunk in response:
|
124 |
# Extract the new token text from the current chunk.
|
|
|
118 |
display_text = "" # Cumulative text that has been finalized and yielded.
|
119 |
think_detected = False
|
120 |
full_response = "" # Accumulates the full raw response (without replacements applied).
|
121 |
+
print(response)
|
122 |
# Process streaming responses.
|
123 |
for chunk in response:
|
124 |
# Extract the new token text from the current chunk.
|