Spaces:
Running
Running
yuntian-deng
commited on
Commit
•
005afd5
1
Parent(s):
376bf58
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ NUM_THREADS = int(os.getenv("NUM_THREADS"))
|
|
18 |
|
19 |
print (NUM_THREADS)
|
20 |
|
21 |
-
|
22 |
@timeout_decorator.timeout(120)
|
23 |
def call_openai_api(payload, headers):
|
24 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
|
|
18 |
|
19 |
print (NUM_THREADS)
|
20 |
|
21 |
+
#@retry(stop=stop_after_attempt(5), wait=wait_fixed(2))
|
22 |
@timeout_decorator.timeout(120)
|
23 |
def call_openai_api(payload, headers):
|
24 |
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|