Spaces:
Runtime error
Runtime error
Update gradio_demo.py
Browse files- gradio_demo.py +4 -3
gradio_demo.py
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import os
|
4 |
-
from train import *
|
5 |
|
6 |
-
|
7 |
-
|
8 |
os.environ["TORCH_CUDA_ARCH_LIST"] = "3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX"
|
9 |
os.system("python -m pip install git+https://github.com/YixunLiang/simple-knn.git")
|
10 |
os.system("python -m pip install git+https://github.com/YixunLiang/diff-gaussian-rasterization.git")
|
11 |
|
|
|
|
|
12 |
example_inputs = [[
|
13 |
"A DSLR photo of a Rugged, vintage-inspired hiking boots with a weathered leather finish, best quality, 4K, HD.",
|
14 |
"Rugged, vintage-inspired hiking boots with a weathered leather finish."
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import os
|
|
|
4 |
|
5 |
+
if os.environ.get('SUBMODULES_INSTALLED') != "True":
|
6 |
+
os.environ['SUBMODULES_INSTALLED'] = "True"
|
7 |
os.environ["TORCH_CUDA_ARCH_LIST"] = "3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX"
|
8 |
os.system("python -m pip install git+https://github.com/YixunLiang/simple-knn.git")
|
9 |
os.system("python -m pip install git+https://github.com/YixunLiang/diff-gaussian-rasterization.git")
|
10 |
|
11 |
+
from train import *
|
12 |
+
|
13 |
example_inputs = [[
|
14 |
"A DSLR photo of a Rugged, vintage-inspired hiking boots with a weathered leather finish, best quality, 4K, HD.",
|
15 |
"Rugged, vintage-inspired hiking boots with a weathered leather finish."
|