Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,7 @@ def generate_response(prompt_template, **kwargs):
|
|
| 13 |
messages=[{"role": "user", "content": prompt}],
|
| 14 |
temperature=0.7,
|
| 15 |
max_tokens=1024,
|
| 16 |
-
top_p=0.8
|
| 17 |
-
stream=True
|
| 18 |
)
|
| 19 |
return response.choices[0].message["content"]
|
| 20 |
|
|
|
|
| 13 |
messages=[{"role": "user", "content": prompt}],
|
| 14 |
temperature=0.7,
|
| 15 |
max_tokens=1024,
|
| 16 |
+
top_p=0.8
|
|
|
|
| 17 |
)
|
| 18 |
return response.choices[0].message["content"]
|
| 19 |
|