huanne1002 commited on
Commit
2dfd5a9
verified
1 Parent(s): 6f70a6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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):