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