Spaces:
Runtime error
Runtime error
yuntian-deng
commited on
Commit
•
de2ea28
1
Parent(s):
4f01381
Update app.py
Browse files
app.py
CHANGED
@@ -89,6 +89,8 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
|
|
89 |
counter = 0
|
90 |
|
91 |
try:
|
|
|
|
|
92 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
93 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
94 |
print ('r', response)
|
|
|
89 |
counter = 0
|
90 |
|
91 |
try:
|
92 |
+
import time
|
93 |
+
time.sleep(10)
|
94 |
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
95 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
96 |
print ('r', response)
|