Spaces:
Running
Running
雷娃
commited on
Commit
·
eb16940
1
Parent(s):
ebac2a9
modify output length
Browse files
app.py
CHANGED
@@ -26,7 +26,9 @@ def chat(user_input, max_new_tokens=20480):
|
|
26 |
temperature=0.7,
|
27 |
top_p=1,
|
28 |
)
|
29 |
-
|
|
|
|
|
30 |
|
31 |
|
32 |
|
|
|
26 |
temperature=0.7,
|
27 |
top_p=1,
|
28 |
)
|
29 |
+
resp_text = response.choices[0].message.content
|
30 |
+
print(resp_text)
|
31 |
+
yield resp_text
|
32 |
|
33 |
|
34 |
|