Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -294,9 +294,9 @@ def generate(text, history, rag_option, model_option, temperature=0.5, max_new_
|
|
| 294 |
#inference allg:
|
| 295 |
data = {
|
| 296 |
"inputs": prompt,
|
| 297 |
-
"options": {"max_new_tokens": 1024},
|
| 298 |
}
|
| 299 |
-
response= requests.post(API_URL, headers=HEADERS, json=
|
| 300 |
result = response.json()
|
| 301 |
print("result:------------------")
|
| 302 |
chatbot_response = result[0]['generated_text']
|
|
|
|
| 294 |
#inference allg:
|
| 295 |
data = {
|
| 296 |
"inputs": prompt,
|
| 297 |
+
#"options": {"max_new_tokens": 1024},
|
| 298 |
}
|
| 299 |
+
response= requests.post(API_URL, headers=HEADERS, json=data)
|
| 300 |
result = response.json()
|
| 301 |
print("result:------------------")
|
| 302 |
chatbot_response = result[0]['generated_text']
|