Spaces:
Runtime error
Runtime error
jiaweir
commited on
Commit
Β·
ea60d75
1
Parent(s):
b2ccbff
ADD WHEEL
Browse files
app.py
CHANGED
|
@@ -8,10 +8,9 @@ import hashlib
|
|
| 8 |
|
| 9 |
import spaces
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
os.system('pip install xformers==0.0.23 --no-deps --index-url https://download.pytorch.org/whl/cu118')
|
| 15 |
|
| 16 |
from huggingface_hub import hf_hub_download
|
| 17 |
ckpt_path = hf_hub_download(repo_id="ashawkey/LGM", filename="model_fp16_fixrot.safetensors")
|
|
@@ -90,8 +89,6 @@ if __name__ == "__main__":
|
|
| 90 |
example_fns.sort()
|
| 91 |
examples_full = [os.path.join(example_folder, x) for x in example_fns if x.endswith('.png')]
|
| 92 |
|
| 93 |
-
install()
|
| 94 |
-
|
| 95 |
# Compose demo layout & data flow
|
| 96 |
with gr.Blocks(title=_TITLE, theme=gr.themes.Soft(), js=js_func) as demo:
|
| 97 |
with gr.Row():
|
|
|
|
| 8 |
|
| 9 |
import spaces
|
| 10 |
|
| 11 |
+
|
| 12 |
+
subprocess.run(shlex.split("pip install wheel/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl"))
|
| 13 |
+
subprocess.run(shlex.split("pip install xformers==0.0.23 --no-deps --index-url https://download.pytorch.org/whl/cu118"))
|
|
|
|
| 14 |
|
| 15 |
from huggingface_hub import hf_hub_download
|
| 16 |
ckpt_path = hf_hub_download(repo_id="ashawkey/LGM", filename="model_fp16_fixrot.safetensors")
|
|
|
|
| 89 |
example_fns.sort()
|
| 90 |
examples_full = [os.path.join(example_folder, x) for x in example_fns if x.endswith('.png')]
|
| 91 |
|
|
|
|
|
|
|
| 92 |
# Compose demo layout & data flow
|
| 93 |
with gr.Blocks(title=_TITLE, theme=gr.themes.Soft(), js=js_func) as demo:
|
| 94 |
with gr.Row():
|
wheels/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42bf718442ba764469170abc09d99a70b7c1d891dc290f2e1247db09c95a0e88
|
| 3 |
+
size 3021758
|