Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
comment out response data
Browse files
app.py
CHANGED
@@ -204,7 +204,7 @@ def predict(
|
|
204 |
try:
|
205 |
response = requests.post('http://0.0.0.0:8008/synthesize', json=data, timeout=60)
|
206 |
response.raise_for_status() # If the response contains an HTTP error status code, raise an exception
|
207 |
-
response_data = json.loads(response.text)
|
208 |
except requests.exceptions.RequestException as err:
|
209 |
print('Failed to synthesize!')
|
210 |
print('server.log contents:')
|
|
|
204 |
try:
|
205 |
response = requests.post('http://0.0.0.0:8008/synthesize', json=data, timeout=60)
|
206 |
response.raise_for_status() # If the response contains an HTTP error status code, raise an exception
|
207 |
+
# response_data = json.loads(response.text)
|
208 |
except requests.exceptions.RequestException as err:
|
209 |
print('Failed to synthesize!')
|
210 |
print('server.log contents:')
|