Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -187,7 +187,9 @@ def extract_glb(
|
|
187 |
|
188 |
|
189 |
with gr.Blocks(delete_cache=(600, 600)) as demo:
|
190 |
-
gr.Markdown("""
|
|
|
|
|
191 |
|
192 |
with gr.Row():
|
193 |
with gr.Column():
|
@@ -205,7 +207,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
205 |
slat_guidance_strength = gr.Slider(0.0, 10.0, label="Guidance Strength", value=3.0, step=0.1)
|
206 |
slat_sampling_steps = gr.Slider(1, 50, label="Sampling Steps", value=12, step=1)
|
207 |
|
208 |
-
generate_btn = gr.Button("
|
209 |
|
210 |
with gr.Accordion(label="GLB Extraction Settings", open=False):
|
211 |
mesh_simplify = gr.Slider(0.9, 0.98, label="Simplify", value=0.95, step=0.01)
|
@@ -214,7 +216,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
214 |
extract_glb_btn = gr.Button("Extract GLB", interactive=False)
|
215 |
|
216 |
with gr.Column():
|
217 |
-
video_output = gr.Video(label="
|
218 |
model_output = LitModel3D(label="Extracted GLB", exposure=20.0, height=300)
|
219 |
download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
|
220 |
|
@@ -231,7 +233,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
231 |
fn=preprocess_image,
|
232 |
outputs=[image_prompt],
|
233 |
run_on_click=True,
|
234 |
-
examples_per_page=
|
235 |
)
|
236 |
|
237 |
# Handlers
|
|
|
187 |
|
188 |
|
189 |
with gr.Blocks(delete_cache=(600, 600)) as demo:
|
190 |
+
gr.Markdown("""
|
191 |
+
## HundAI 3D Game Assets Generator
|
192 |
+
""")
|
193 |
|
194 |
with gr.Row():
|
195 |
with gr.Column():
|
|
|
207 |
slat_guidance_strength = gr.Slider(0.0, 10.0, label="Guidance Strength", value=3.0, step=0.1)
|
208 |
slat_sampling_steps = gr.Slider(1, 50, label="Sampling Steps", value=12, step=1)
|
209 |
|
210 |
+
generate_btn = gr.Button("Generate Asset")
|
211 |
|
212 |
with gr.Accordion(label="GLB Extraction Settings", open=False):
|
213 |
mesh_simplify = gr.Slider(0.9, 0.98, label="Simplify", value=0.95, step=0.01)
|
|
|
216 |
extract_glb_btn = gr.Button("Extract GLB", interactive=False)
|
217 |
|
218 |
with gr.Column():
|
219 |
+
video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
|
220 |
model_output = LitModel3D(label="Extracted GLB", exposure=20.0, height=300)
|
221 |
download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
|
222 |
|
|
|
233 |
fn=preprocess_image,
|
234 |
outputs=[image_prompt],
|
235 |
run_on_click=True,
|
236 |
+
examples_per_page=15,
|
237 |
)
|
238 |
|
239 |
# Handlers
|