rehan953 commited on
Commit
386231a
·
verified ·
1 Parent(s): 7291c66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,7 +48,7 @@ def get_parser():
48
  if _parser is None:
49
  from glmocr import GlmOcr
50
  _parser = GlmOcr(
51
- api_key=os.environ.get("GLMOCR_API_KEY", "4570c28bdea5493c9efae9dae68edc66.sGbA9DLlcX1GlvqV"),
52
  mode="maas",
53
  )
54
  return _parser
@@ -60,7 +60,7 @@ try:
60
  with open(CONFIG_PATH, "r") as f:
61
  config = yaml.safe_load(f)
62
  config["pipeline"]["maas"]["enabled"] = True
63
- config["pipeline"]["maas"]["api_key"] = os.environ.get("GLMOCR_API_KEY", "4570c28bdea5493c9efae9dae68edc66.sGbA9DLlcX1GlvqV")
64
 
65
  to_include_as_text = {"header", "footer"}
66
  layout_section = config.get("pipeline", {}).get("layout", {})
 
48
  if _parser is None:
49
  from glmocr import GlmOcr
50
  _parser = GlmOcr(
51
+ api_key=os.environ.get("GLMOCR_API_KEY", "b5a945bcb75e41bf9a572cd3441c64aa.mJeLXouCTmVBsdbS"),
52
  mode="maas",
53
  )
54
  return _parser
 
60
  with open(CONFIG_PATH, "r") as f:
61
  config = yaml.safe_load(f)
62
  config["pipeline"]["maas"]["enabled"] = True
63
+ config["pipeline"]["maas"]["api_key"] = os.environ.get("GLMOCR_API_KEY", "b5a945bcb75e41bf9a572cd3441c64aa.mJeLXouCTmVBsdbS")
64
 
65
  to_include_as_text = {"header", "footer"}
66
  layout_section = config.get("pipeline", {}).get("layout", {})