Abrar55 commited on
Commit
89e0979
Β·
verified Β·
1 Parent(s): d671e4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -23,9 +23,9 @@ sys.path.insert(0, str(Path(__file__).parent.parent))
23
  # ---------------------------------------------------------------------------
24
 
25
  MODEL_PATH = os.environ.get(
26
- "HF_MODEL_REPO", "Abrar55/chex-document-intelligence"
27
  )
28
- SAMPLE_DIR = Path(__file__).parent / ""
29
  STATEMENT_DIR = Path(__file__).parent / "sample_statements"
30
 
31
  analyzer = None
@@ -1213,8 +1213,6 @@ STATEMENT_RESULTS_HEADER_HTML = """
1213
 
1214
  with gr.Blocks(
1215
  title="CHEX β€” Document Intelligence",
1216
- theme=gr.themes.Base(),
1217
- css=CHEX_CSS,
1218
  ) as demo:
1219
 
1220
  # ── Topbar ──────────────────────────────────────────────────────────── #
@@ -1433,4 +1431,4 @@ with gr.Blocks(
1433
 
1434
 
1435
  if __name__ == "__main__":
1436
- demo.launch(show_error=True)
 
23
  # ---------------------------------------------------------------------------
24
 
25
  MODEL_PATH = os.environ.get(
26
+ "HF_MODEL_REPO", "PLACEHOLDER/chex-document-intelligence"
27
  )
28
+ SAMPLE_DIR = Path(__file__).parent / "sample_contracts"
29
  STATEMENT_DIR = Path(__file__).parent / "sample_statements"
30
 
31
  analyzer = None
 
1213
 
1214
  with gr.Blocks(
1215
  title="CHEX β€” Document Intelligence",
 
 
1216
  ) as demo:
1217
 
1218
  # ── Topbar ──────────────────────────────────────────────────────────── #
 
1431
 
1432
 
1433
  if __name__ == "__main__":
1434
+ demo.launch(show_error=True, theme=gr.themes.Base(), css=CHEX_CSS, ssr_mode=False)