Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import shlex
|
2 |
import subprocess
|
3 |
|
4 |
-
|
5 |
subprocess.run(shlex.split("pip install pip==24.0"), check=True)
|
6 |
subprocess.run(
|
7 |
shlex.split(
|
@@ -14,9 +14,12 @@ subprocess.run(
|
|
14 |
), check=True
|
15 |
)
|
16 |
|
|
|
17 |
if __name__ == "__main__":
|
18 |
from huggingface_hub import snapshot_download
|
19 |
-
|
|
|
|
|
20 |
import os
|
21 |
import sys
|
22 |
sys.path.append(os.curdir)
|
@@ -24,6 +27,7 @@ if __name__ == "__main__":
|
|
24 |
torch.set_float32_matmul_precision('medium')
|
25 |
torch.backends.cuda.matmul.allow_tf32 = True
|
26 |
torch.set_grad_enabled(False)
|
|
|
27 |
import fire
|
28 |
import gradio as gr
|
29 |
from gradio_app.gradio_3dgen import create_ui as create_3d_ui
|
@@ -37,6 +41,9 @@ _DESCRIPTION = """
|
|
37 |
**Base t茅cnica:** Adaptaci贸n de [Unique3D](https://wukailu.github.io/Unique3D/) (herramientas de c贸digo abierto para generaci贸n 3D)
|
38 |
<br>
|
39 |
**Prop贸sito educativo:** Demostraciones acad茅micas e Investigaci贸n en modelado 3D autom谩tico
|
|
|
|
|
|
|
40 |
"""
|
41 |
|
42 |
def launch():
|
|
|
1 |
import shlex
|
2 |
import subprocess
|
3 |
|
4 |
+
|
5 |
subprocess.run(shlex.split("pip install pip==24.0"), check=True)
|
6 |
subprocess.run(
|
7 |
shlex.split(
|
|
|
14 |
), check=True
|
15 |
)
|
16 |
|
17 |
+
|
18 |
if __name__ == "__main__":
|
19 |
from huggingface_hub import snapshot_download
|
20 |
+
|
21 |
+
snapshot_download("public-data/Unique3D", repo_type="model", local_dir="./ckpt")
|
22 |
+
|
23 |
import os
|
24 |
import sys
|
25 |
sys.path.append(os.curdir)
|
|
|
27 |
torch.set_float32_matmul_precision('medium')
|
28 |
torch.backends.cuda.matmul.allow_tf32 = True
|
29 |
torch.set_grad_enabled(False)
|
30 |
+
|
31 |
import fire
|
32 |
import gradio as gr
|
33 |
from gradio_app.gradio_3dgen import create_ui as create_3d_ui
|
|
|
41 |
**Base t茅cnica:** Adaptaci贸n de [Unique3D](https://wukailu.github.io/Unique3D/) (herramientas de c贸digo abierto para generaci贸n 3D)
|
42 |
<br>
|
43 |
**Prop贸sito educativo:** Demostraciones acad茅micas e Investigaci贸n en modelado 3D autom谩tico
|
44 |
+
<br>
|
45 |
+
**Agraecimiento especial a @hysts por su apoyo para el funcionamiento del demo**
|
46 |
+
|
47 |
"""
|
48 |
|
49 |
def launch():
|