Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ def predict(
|
|
186 |
|
187 |
upload_url = "https://temp.sh/upload"
|
188 |
res = requests.post(upload_url, files={"file": open(output_path, "rb")})
|
189 |
-
response = str(res.content)
|
190 |
|
191 |
except RuntimeError as e:
|
192 |
if "device-side assert" in str(e):
|
|
|
186 |
|
187 |
upload_url = "https://temp.sh/upload"
|
188 |
res = requests.post(upload_url, files={"file": open(output_path, "rb")})
|
189 |
+
response = str(res.content, 'utf-8')
|
190 |
|
191 |
except RuntimeError as e:
|
192 |
if "device-side assert" in str(e):
|