XuminYu commited on
Commit
ee571d4
1 Parent(s): 8d10dda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ def predict(prompt, style, audio_file_pth, agree):
101
 
102
  start = time.time()
103
  # Send the data as a POST request
104
- response = requests.post(API_URL, json=data)
105
  print(f'Get response successfully within {time.time() - start}')
106
 
107
  # Check the response
 
101
 
102
  start = time.time()
103
  # Send the data as a POST request
104
+ response = requests.post(API_URL, json=data, timeout=60)
105
  print(f'Get response successfully within {time.time() - start}')
106
 
107
  # Check the response