ysharma HF staff commited on
Commit
ba22f04
1 Parent(s): 38e3658

update response code logging

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
61
  print(f"payload is - {payload}")
62
  # make a POST request to the API endpoint using the requests.post method, passing in stream=True
63
  response = requests.post(API_URL, headers=headers, json=payload, stream=True)
64
- #response = requests.post(API_URL, headers=headers, json=payload, stream=True)
65
  token_counter = 0
66
  partial_words = ""
67
 
 
61
  print(f"payload is - {payload}")
62
  # make a POST request to the API endpoint using the requests.post method, passing in stream=True
63
  response = requests.post(API_URL, headers=headers, json=payload, stream=True)
64
+ print(f"response code - {response}")
65
  token_counter = 0
66
  partial_words = ""
67