Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def generate_response(prompt, history, temperature=0.5, max_tokens=1024, top_p=1
|
|
| 34 |
# Collect the output from the stream
|
| 35 |
output = ""
|
| 36 |
for chunk in stream:
|
| 37 |
-
output += chunk.choices[0].delta.content
|
| 38 |
return output
|
| 39 |
|
| 40 |
except Exception as e:
|
|
|
|
| 34 |
# Collect the output from the stream
|
| 35 |
output = ""
|
| 36 |
for chunk in stream:
|
| 37 |
+
output += str(chunk.choices[0].delta.content)
|
| 38 |
return output
|
| 39 |
|
| 40 |
except Exception as e:
|