Spaces:
Running
on
Zero
Running
on
Zero
- app.py +8 -0
- requirements.txt +0 -4
app.py
CHANGED
@@ -9,6 +9,14 @@ from datetime import datetime
|
|
9 |
from pytz import timezone
|
10 |
from scripts.survey import handle_form_submission, handle_visit_choice, handle_proceed, localize, script, generate_image, send_feedback
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# 初期化
|
13 |
initialize(_use_local=False, use_gpu=True, use_dotenv=True)
|
14 |
init_model(use_local=False)
|
|
|
9 |
from pytz import timezone
|
10 |
from scripts.survey import handle_form_submission, handle_visit_choice, handle_proceed, localize, script, generate_image, send_feedback
|
11 |
|
12 |
+
# spacesのバージョンがspaces==0.30.4以外の場合pipを実行
|
13 |
+
import spaces
|
14 |
+
if spaces.__version__ != "0.30.4":
|
15 |
+
print("Installing spaces==0.30.4")
|
16 |
+
os.system("pip install spaces==0.30.4")
|
17 |
+
else:
|
18 |
+
print("spaces==0.30.4 is already installed")
|
19 |
+
|
20 |
# 初期化
|
21 |
initialize(_use_local=False, use_gpu=True, use_dotenv=True)
|
22 |
init_model(use_local=False)
|
requirements.txt
CHANGED
@@ -23,7 +23,3 @@ peft==0.11.1
|
|
23 |
flask_limiter==3.7.0
|
24 |
gevent==24.2.1
|
25 |
gevent-websocket==0.10.1
|
26 |
-
|
27 |
-
https://huggingface.co/spaces/TencentARC/FreeSplatter/resolve/main/wheels/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl?download=true
|
28 |
-
https://huggingface.co/spaces/TencentARC/FreeSplatter/resolve/main/wheels/diff_surfel_rasterization-0.0.1-cp310-cp310-linux_x86_64.whl?download=true
|
29 |
-
https://huggingface.co/spaces/JeffreyXiang/TRELLIS/resolve/main/wheels/nvdiffrast-0.3.3-cp310-cp310-linux_x86_64.whl?download=true
|
|
|
23 |
flask_limiter==3.7.0
|
24 |
gevent==24.2.1
|
25 |
gevent-websocket==0.10.1
|
|
|
|
|
|
|
|