shoom013 commited on
Commit
a6e52a3
·
verified ·
1 Parent(s): ddbec31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: