ysharma HF staff commited on
Commit
c1127b8
1 Parent(s): 09e4eaf
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def predict(message, chatbot):
37
  #response_json_object = json.loads(response.text)
38
  #return response_json_object[0]['generated_text']
39
 
40
- response = requests.post(url, headers=headers, data=json.dumps(data), auth=('hf', hf_token), stream=True)
41
 
42
  partial_message = ""
43
  for line in response.iter_lines():
 
37
  #response_json_object = json.loads(response.text)
38
  #return response_json_object[0]['generated_text']
39
 
40
+ response = requests.post(api_url, headers=headers, data=json.dumps(data), auth=('hf', hf_token), stream=True)
41
 
42
  partial_message = ""
43
  for line in response.iter_lines():