Spaces:
Running
on
L40S
Running
on
L40S
Upload app_hg.py with huggingface_hub
Browse files
app_hg.py
CHANGED
@@ -278,8 +278,8 @@ with gr.Blocks() as demo:
|
|
278 |
textgen_max_faces = gr.Number(value=90000, label="max number of faces", precision=0)
|
279 |
|
280 |
with gr.Row():
|
281 |
-
textgen_do_texture_mapping = gr.Checkbox(label="texture mapping", value=False, interactive=True)
|
282 |
-
textgen_do_render_gif = gr.Checkbox(label="Render gif", value=False, interactive=True)
|
283 |
textgen_submit = gr.Button("Generate", variant="primary")
|
284 |
|
285 |
with gr.Row():
|
@@ -297,8 +297,8 @@ with gr.Blocks() as demo:
|
|
297 |
imggen_max_faces = gr.Number(value=90000, label="max number of faces", precision=0)
|
298 |
|
299 |
with gr.Row():
|
300 |
-
imggen_do_texture_mapping = gr.Checkbox(label="texture mapping", value=False, interactive=True)
|
301 |
-
imggen_do_render_gif = gr.Checkbox(label="Render gif", value=False, interactive=True)
|
302 |
imggen_submit = gr.Button("Generate", variant="primary")
|
303 |
with gr.Row():
|
304 |
gr.Examples(examples=example_is, inputs=[input_image], label="Img examples", examples_per_page=10)
|
@@ -329,7 +329,7 @@ with gr.Blocks() as demo:
|
|
329 |
camera_position=[90, 90, None],
|
330 |
interactive=False
|
331 |
)
|
332 |
-
result_gif = gr.Image(label="Rendered GIF", interactive=False)
|
333 |
|
334 |
with gr.Row():
|
335 |
gr.Markdown("""
|
@@ -339,7 +339,11 @@ with gr.Blocks() as demo:
|
|
339 |
""")
|
340 |
|
341 |
#===============================================================
|
342 |
-
|
|
|
|
|
|
|
|
|
343 |
none = gr.State(None)
|
344 |
save_folder = gr.State()
|
345 |
cond_image = gr.State()
|
|
|
278 |
textgen_max_faces = gr.Number(value=90000, label="max number of faces", precision=0)
|
279 |
|
280 |
with gr.Row():
|
281 |
+
# textgen_do_texture_mapping = gr.Checkbox(label="texture mapping", value=False, interactive=True)
|
282 |
+
# textgen_do_render_gif = gr.Checkbox(label="Render gif", value=False, interactive=True)
|
283 |
textgen_submit = gr.Button("Generate", variant="primary")
|
284 |
|
285 |
with gr.Row():
|
|
|
297 |
imggen_max_faces = gr.Number(value=90000, label="max number of faces", precision=0)
|
298 |
|
299 |
with gr.Row():
|
300 |
+
# imggen_do_texture_mapping = gr.Checkbox(label="texture mapping", value=False, interactive=True)
|
301 |
+
# imggen_do_render_gif = gr.Checkbox(label="Render gif", value=False, interactive=True)
|
302 |
imggen_submit = gr.Button("Generate", variant="primary")
|
303 |
with gr.Row():
|
304 |
gr.Examples(examples=example_is, inputs=[input_image], label="Img examples", examples_per_page=10)
|
|
|
329 |
camera_position=[90, 90, None],
|
330 |
interactive=False
|
331 |
)
|
332 |
+
# result_gif = gr.Image(label="Rendered GIF", interactive=False)
|
333 |
|
334 |
with gr.Row():
|
335 |
gr.Markdown("""
|
|
|
339 |
""")
|
340 |
|
341 |
#===============================================================
|
342 |
+
textgen_do_texture_mapping = gr.State(False)
|
343 |
+
textgen_do_render_gif = gr.State(False)
|
344 |
+
imggen_do_texture_mapping = gr.State(False)
|
345 |
+
imggen_do_render_gif = gr.State(False)
|
346 |
+
|
347 |
none = gr.State(None)
|
348 |
save_folder = gr.State()
|
349 |
cond_image = gr.State()
|