yuntian-deng
commited on
Commit
•
f8fa014
1
Parent(s):
558e9ac
Update app.py
Browse files
app.py
CHANGED
@@ -69,8 +69,8 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
|
69 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
70 |
response_code = f"{response}"
|
71 |
if response_code.strip() != "<Response [200]>":
|
72 |
-
print(f"response code - {response}")
|
73 |
-
raise Exception("Sorry, hitting rate limit. Please try again later.")
|
74 |
token_counter = 0
|
75 |
partial_words = ""
|
76 |
counter=0
|
|
|
69 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
70 |
response_code = f"{response}"
|
71 |
if response_code.strip() != "<Response [200]>":
|
72 |
+
#print(f"response code - {response}")
|
73 |
+
raise Exception(f"Sorry, hitting rate limit. Please try again later. {response}")
|
74 |
token_counter = 0
|
75 |
partial_words = ""
|
76 |
counter=0
|