Spaces:
Running
Running
Update app.py
Browse files
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
|