Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -204,10 +204,10 @@ def rag(input_text, history, jezik, request: gr.Request): # , file):
|
|
| 204 |
"input_query": input_text,
|
| 205 |
"response": response
|
| 206 |
}
|
| 207 |
-
headers =
|
| 208 |
"Authorization:" "Bearer " + API_SECRET,
|
| 209 |
"Content-Type": "application/json"
|
| 210 |
-
|
| 211 |
try:
|
| 212 |
api_response = requests.post(url, json=payload, headers=headers)
|
| 213 |
except:
|
|
|
|
| 204 |
"input_query": input_text,
|
| 205 |
"response": response
|
| 206 |
}
|
| 207 |
+
headers = {
|
| 208 |
"Authorization:" "Bearer " + API_SECRET,
|
| 209 |
"Content-Type": "application/json"
|
| 210 |
+
}
|
| 211 |
try:
|
| 212 |
api_response = requests.post(url, json=payload, headers=headers)
|
| 213 |
except:
|