Spaces:
Running
on
Zero
Running
on
Zero
MohamedRashad
commited on
Commit
β’
c63aa42
1
Parent(s):
2175b47
Update SDK version in README and revert model output to LitModel3D in app.py
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: π
|
|
4 |
colorFrom: gray
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
short_description: Tool to generate 3D assets for games
|
|
|
4 |
colorFrom: gray
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.44.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
short_description: Tool to generate 3D assets for games
|
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
-
|
4 |
|
5 |
import os
|
6 |
os.environ['SPCONV_ALGO'] = 'native'
|
@@ -256,8 +256,8 @@ with gr.Blocks(title="Game Items Generator") as demo:
|
|
256 |
|
257 |
with gr.Column():
|
258 |
video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
|
259 |
-
|
260 |
-
model_output = gr.Model3D(label="Extracted GLB", height=300)
|
261 |
download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
|
262 |
|
263 |
trial_id = gr.Textbox(visible=False)
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
+
from gradio_litmodel3d import LitModel3D
|
4 |
|
5 |
import os
|
6 |
os.environ['SPCONV_ALGO'] = 'native'
|
|
|
256 |
|
257 |
with gr.Column():
|
258 |
video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
|
259 |
+
model_output = LitModel3D(label="Extracted GLB", exposure=20.0, height=300)
|
260 |
+
# model_output = gr.Model3D(label="Extracted GLB", height=300)
|
261 |
download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
|
262 |
|
263 |
trial_id = gr.Textbox(visible=False)
|