yuntian-deng
commited on
Commit
•
5c4e310
1
Parent(s):
f0d3d62
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
|
64 |
response_code = f"{response}"
|
65 |
if response_code.strip() != "<Response [200]>":
|
66 |
print(f"response code - {response}")
|
67 |
-
|
68 |
token_counter = 0
|
69 |
partial_words = ""
|
70 |
counter=0
|
|
|
64 |
response_code = f"{response}"
|
65 |
if response_code.strip() != "<Response [200]>":
|
66 |
print(f"response code - {response}")
|
67 |
+
raise Exception("Sorry, hitting rate limit. Please try again later.")
|
68 |
token_counter = 0
|
69 |
partial_words = ""
|
70 |
counter=0
|