Spaces:
Running on Zero
Running on Zero
xinjie.wang commited on
Commit ·
62968aa
1
Parent(s): 23f376e
update
Browse files- README.md +1 -1
- app.py +5 -3
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🐨
|
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
|
|
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.8.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
app.py
CHANGED
|
@@ -52,9 +52,13 @@ CSV_FILE = "dataset_index.csv"
|
|
| 52 |
|
| 53 |
# Compatible with huggingface space zero GPU
|
| 54 |
import spaces
|
|
|
|
|
|
|
| 55 |
@spaces.GPU
|
| 56 |
def fake_gpu_init():
|
| 57 |
pass
|
|
|
|
|
|
|
| 58 |
fake_gpu_init()
|
| 59 |
|
| 60 |
if RUNNING_MODE == "local":
|
|
@@ -500,9 +504,7 @@ with gr.Blocks(
|
|
| 500 |
|
| 501 |
Browse and visualize the EmbodiedGen 3D asset database. Select categories to filter and click on a preview to load the model.
|
| 502 |
|
| 503 |
-
""".format(
|
| 504 |
-
VERSION=VERSION
|
| 505 |
-
),
|
| 506 |
elem_classes=["header"],
|
| 507 |
)
|
| 508 |
|
|
|
|
| 52 |
|
| 53 |
# Compatible with huggingface space zero GPU
|
| 54 |
import spaces
|
| 55 |
+
|
| 56 |
+
|
| 57 |
@spaces.GPU
|
| 58 |
def fake_gpu_init():
|
| 59 |
pass
|
| 60 |
+
|
| 61 |
+
|
| 62 |
fake_gpu_init()
|
| 63 |
|
| 64 |
if RUNNING_MODE == "local":
|
|
|
|
| 504 |
|
| 505 |
Browse and visualize the EmbodiedGen 3D asset database. Select categories to filter and click on a preview to load the model.
|
| 506 |
|
| 507 |
+
""".format(VERSION=VERSION),
|
|
|
|
|
|
|
| 508 |
elem_classes=["header"],
|
| 509 |
)
|
| 510 |
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio
|
| 2 |
pandas
|
| 3 |
openai==1.58.1
|
| 4 |
tenacity
|
|
|
|
| 1 |
+
gradio==6.8.0
|
| 2 |
pandas
|
| 3 |
openai==1.58.1
|
| 4 |
tenacity
|