youngtsai commited on
Commit
0abd2d5
·
1 Parent(s): 5100da5

text_refine = text.replace("```json\n", "").replace("\n```", "")

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -62,7 +62,8 @@ def process_image(image_url):
62
  print("======image_to_text=====")
63
  print(text)
64
  print("========================")
65
- question_json = json.loads(text)
 
66
  return text, question_json
67
 
68
  def image_to_text(url):
 
62
  print("======image_to_text=====")
63
  print(text)
64
  print("========================")
65
+ text_refine = text.replace("```json\n", "").replace("\n```", "")
66
+ question_json = json.loads(text_refine)
67
  return text, question_json
68
 
69
  def image_to_text(url):