Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
-
|
4 |
import os
|
5 |
import shutil
|
6 |
import random
|
@@ -165,14 +165,14 @@ with gr.Blocks() as demo:
|
|
165 |
# UTPL - Conversi贸n de Texto a Imagen a objetos 3D usando IA
|
166 |
### Tesis: *"Objetos tridimensionales creados por IA: Innovaci贸n en entornos virtuales"*
|
167 |
**Autor:** Carlos Vargas
|
168 |
-
**Base t茅cnica:** Adaptaci贸n de [TRELLIS](https://trellis3d.github.io/) y [FLUX](https://huggingface.co/camenduru/FLUX.1-dev-diffusers) (herramientas de c贸digo abierto para generaci贸n 3D)
|
169 |
**Prop贸sito educativo:** Demostraciones acad茅micas e Investigaci贸n en modelado 3D autom谩tico
|
170 |
""")
|
171 |
|
172 |
with gr.Row():
|
173 |
with gr.Column():
|
174 |
# Flux image generation inputs
|
175 |
-
prompt = gr.
|
176 |
with gr.Accordion("Generation Settings", open=False):
|
177 |
seed = gr.Slider(0, MAX_SEED, label="Seed", value=42, step=1)
|
178 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
@@ -187,7 +187,7 @@ with gr.Blocks() as demo:
|
|
187 |
with gr.Column():
|
188 |
generated_image = gr.Image(label="Generated Asset", type="pil")
|
189 |
video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True)
|
190 |
-
model_output =
|
191 |
|
192 |
with gr.Row():
|
193 |
extract_glb_btn = gr.Button("Extract GLB", interactive=False)
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
+
|
4 |
import os
|
5 |
import shutil
|
6 |
import random
|
|
|
165 |
# UTPL - Conversi贸n de Texto a Imagen a objetos 3D usando IA
|
166 |
### Tesis: *"Objetos tridimensionales creados por IA: Innovaci贸n en entornos virtuales"*
|
167 |
**Autor:** Carlos Vargas
|
168 |
+
**Base t茅cnica:** Adaptaci贸n de [TRELLIS](https://trellis3d.github.io/) y [FLUX](https://huggingface.co/camenduru/FLUX.1-dev-diffusers) (herramientas de c贸digo abierto para generaci贸n 3D)
|
169 |
**Prop贸sito educativo:** Demostraciones acad茅micas e Investigaci贸n en modelado 3D autom谩tico
|
170 |
""")
|
171 |
|
172 |
with gr.Row():
|
173 |
with gr.Column():
|
174 |
# Flux image generation inputs
|
175 |
+
prompt = gr.Textbox(label="Prompt", placeholder="Enter your game asset description")
|
176 |
with gr.Accordion("Generation Settings", open=False):
|
177 |
seed = gr.Slider(0, MAX_SEED, label="Seed", value=42, step=1)
|
178 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
|
|
187 |
with gr.Column():
|
188 |
generated_image = gr.Image(label="Generated Asset", type="pil")
|
189 |
video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True)
|
190 |
+
model_output = gr.Model3D(label="Extracted GLB/Gaussian", height=400)
|
191 |
|
192 |
with gr.Row():
|
193 |
extract_glb_btn = gr.Button("Extract GLB", interactive=False)
|