SourcezZ commited on
Commit
2b22819
·
1 Parent(s): 98de20b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -128,7 +128,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chatbot=[], history=[],
128
  history.append(inputs)
129
  print(f"payload is - {payload}")
130
  # make a POST request to the API endpoint using the requests.post method, passing in stream=True
131
- response = requests.post(API_URL, headers=headers, json=payload, stream=True, proxies=proxies)
132
  # response = requests.post(API_URL, headers=headers, json=payload, stream=True)
133
 
134
  token_counter = 0
 
128
  history.append(inputs)
129
  print(f"payload is - {payload}")
130
  # make a POST request to the API endpoint using the requests.post method, passing in stream=True
131
+ response = requests.post(API_URL, headers=headers, json=payload, stream=True)
132
  # response = requests.post(API_URL, headers=headers, json=payload, stream=True)
133
 
134
  token_counter = 0