garvitsachdeva commited on
Commit
68ba0c4
·
1 Parent(s): fc19138

fix: remove root app.py — HF defaults to app.py over app_file setting

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py DELETED
@@ -1,18 +0,0 @@
1
- import streamlit as st
2
- import sys, os, traceback
3
- from pathlib import Path
4
-
5
- root = Path(__file__).resolve().parent
6
- sys.path.insert(0, str(root))
7
- os.chdir(str(root))
8
-
9
- try:
10
- demo = root / "demo" / "streamlit_app.py"
11
- with open(demo, encoding="utf-8") as f:
12
- code = f.read()
13
- exec(compile(code, str(demo), "exec"), {"__file__": str(demo), "__name__": "__main__"})
14
- except SystemExit:
15
- pass
16
- except BaseException as e:
17
- st.error(f"SpindleFlow failed to load: {e}")
18
- st.code(traceback.format_exc())