Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def predict(message, history):
|
|
26 |
frequency_penalty=0, # [-2,2]之间,该值越大则更倾向于产生不同的内容
|
27 |
presence_penalty=0, # [-2,2]之间,该值越大则更倾向于产生不同的内容
|
28 |
)
|
29 |
-
yield response.choices[0]['message']['content']
|
30 |
# print(response.choices[0]['message']['content'])
|
31 |
# partial_message = ""
|
32 |
# for chunk in response:
|
|
|
26 |
frequency_penalty=0, # [-2,2]之间,该值越大则更倾向于产生不同的内容
|
27 |
presence_penalty=0, # [-2,2]之间,该值越大则更倾向于产生不同的内容
|
28 |
)
|
29 |
+
yield response.choices[0]['message']['content']
|
30 |
# print(response.choices[0]['message']['content'])
|
31 |
# partial_message = ""
|
32 |
# for chunk in response:
|