Luke
commited on
Commit
•
80bf26f
1
Parent(s):
6eaabbc
no message
Browse files- app.py +1 -0
- requirements.txt +1 -2
app.py
CHANGED
@@ -13,6 +13,7 @@ from Preprocess.preprocessImg import PreprocessImg
|
|
13 |
os.chdir("node_app")
|
14 |
# 如果 node_modules 目錄不存在,則執行 npm install
|
15 |
if not os.path.exists("node_modules"):
|
|
|
16 |
subprocess.run(["npm", "install"])
|
17 |
# 切換回上級目錄
|
18 |
os.chdir("..")
|
|
|
13 |
os.chdir("node_app")
|
14 |
# 如果 node_modules 目錄不存在,則執行 npm install
|
15 |
if not os.path.exists("node_modules"):
|
16 |
+
print(" ######################## NPM INSTALL ########################")
|
17 |
subprocess.run(["npm", "install"])
|
18 |
# 切換回上級目錄
|
19 |
os.chdir("..")
|
requirements.txt
CHANGED
@@ -5,5 +5,4 @@ Pillow
|
|
5 |
torch
|
6 |
huggingface-hub
|
7 |
opencv-python
|
8 |
-
numpy
|
9 |
-
npm
|
|
|
5 |
torch
|
6 |
huggingface-hub
|
7 |
opencv-python
|
8 |
+
numpy
|
|