xinjie.wang
commited on
Commit
·
d538199
1
Parent(s):
0758d87
Add application file
Browse files- app.py +1 -5
- requirements.txt +1 -1
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
-
from gradio_litmodel3d import LitModel3D
|
4 |
|
5 |
@spaces.GPU
|
6 |
def greet(n):
|
@@ -17,10 +17,6 @@ with gr.Blocks() as demo:
|
|
17 |
# value="https://modelviewer.dev/shared-assets/models/Astronaut.glb", # 示例模型
|
18 |
clear_color=(0.9, 0.9, 0.9, 1) # 先设置亮色背景提升基础亮度
|
19 |
)
|
20 |
-
model = LitModel3D(
|
21 |
-
label="3D Model Viewer2",
|
22 |
-
# value="https://modelviewer.dev/shared-assets/models/Astronaut.glb", # 示例模型
|
23 |
-
)
|
24 |
|
25 |
# demo.load(
|
26 |
# js="""
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
+
# from gradio_litmodel3d import LitModel3D
|
4 |
|
5 |
@spaces.GPU
|
6 |
def greet(n):
|
|
|
17 |
# value="https://modelviewer.dev/shared-assets/models/Astronaut.glb", # 示例模型
|
18 |
clear_color=(0.9, 0.9, 0.9, 1) # 先设置亮色背景提升基础亮度
|
19 |
)
|
|
|
|
|
|
|
|
|
20 |
|
21 |
# demo.load(
|
22 |
# js="""
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cu121
|
2 |
|
3 |
|
4 |
-
gradio_litmodel3d==0.0.1
|
5 |
# gradio==5.12.0
|
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cu121
|
2 |
|
3 |
|
4 |
+
# gradio_litmodel3d==0.0.1
|
5 |
# gradio==5.12.0
|