yuntian-deng commited on
Commit
a3f51b5
1 Parent(s): 005afd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,8 +18,8 @@ NUM_THREADS = int(os.getenv("NUM_THREADS"))
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)
25
  response.raise_for_status()
 
18
 
19
  print (NUM_THREADS)
20
 
21
+ #@timeout_decorator.timeout(120)
22
+ @retry(stop=stop_after_attempt(5), wait=wait_fixed(2))
23
  def call_openai_api(payload, headers):
24
  response = requests.post(API_URL, headers=headers, json=payload, stream=True)
25
  response.raise_for_status()