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