hantech commited on
Commit
b952638
Β·
1 Parent(s): 174240c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def inference(filepath, lang, labels):
82
  out = recognitor.predict(cropped_image)
83
  texts = texts + '\t' + out
84
  result = query(texts, labels)
85
- jsonText = json.dumps(result)
86
  im = PIL.Image.open(filepath)
87
  draw_boxes(im, bounds)
88
  im.save('result.jpg')
 
82
  out = recognitor.predict(cropped_image)
83
  texts = texts + '\t' + out
84
  result = query(texts, labels)
85
+ jsonText = json.dumps(result, ensure_ascii=False).encode('utf8')
86
  im = PIL.Image.open(filepath)
87
  draw_boxes(im, bounds)
88
  im.save('result.jpg')