cheenchan commited on
Commit
d564157
·
1 Parent(s): 2f62e40

Load package from workspace without editable install

Browse files
Files changed (2) hide show
  1. app.py +9 -1
  2. requirements.txt +0 -1
app.py CHANGED
@@ -1,4 +1,12 @@
1
- from frame_extraction.app import main
 
 
 
 
 
 
 
 
2
 
3
  if __name__ == "__main__":
4
  main()
 
1
+ import sys
2
+ from pathlib import Path
3
+
4
+ ROOT = Path(__file__).resolve().parent
5
+ SRC_PATH = ROOT / "frame_extraction" / "src"
6
+ if SRC_PATH.exists():
7
+ sys.path.append(str(SRC_PATH))
8
+
9
+ from frame_extraction.app import main # type: ignore # noqa: E402
10
 
11
  if __name__ == "__main__":
12
  main()
requirements.txt CHANGED
@@ -11,4 +11,3 @@ Pillow>=10.0
11
  tqdm>=4.66
12
  gradio>=5.0
13
  faiss-cpu>=1.12.0
14
- -e frame_extraction
 
11
  tqdm>=4.66
12
  gradio>=5.0
13
  faiss-cpu>=1.12.0