ucaslcl commited on
Commit
b24ce56
Β·
verified Β·
1 Parent(s): 88f7854

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -30,6 +30,7 @@ def run_GOT(image_array, got_mode, fine_grained_mode="", ocr_color="", ocr_box="
30
  if "format" in got_mode:
31
  with open(html_file, 'r') as f:
32
  demo_html = f.read()
 
33
  print("demo_html: \n", demo_html)
34
  print(os.path.abspath(html_file))
35
  return res, demo_html
 
30
  if "format" in got_mode:
31
  with open(html_file, 'r') as f:
32
  demo_html = f.read()
33
+ demo_html = demo_html.replace("https://cdn.jsdelivr.net/npm/[email protected]/es5/bundle.js", "assets/bundle.js")
34
  print("demo_html: \n", demo_html)
35
  print(os.path.abspath(html_file))
36
  return res, demo_html