Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def get_rag_answer(query, top_results):
|
|
109 |
headers = {"Authorization": f"Bearer {WRITE_ACCESS_TOKEN}"}
|
110 |
payload = {
|
111 |
"inputs": prompt,
|
112 |
-
"parameters": {"max_new_tokens":
|
113 |
}
|
114 |
response = requests.post(DEDICATED_ENDPOINT, headers=headers, json=payload)
|
115 |
if response.status_code == 200:
|
|
|
109 |
headers = {"Authorization": f"Bearer {WRITE_ACCESS_TOKEN}"}
|
110 |
payload = {
|
111 |
"inputs": prompt,
|
112 |
+
"parameters": {"max_new_tokens": 300}
|
113 |
}
|
114 |
response = requests.post(DEDICATED_ENDPOINT, headers=headers, json=payload)
|
115 |
if response.status_code == 200:
|