aiqtech commited on
Commit
2984fcd
ยท
verified ยท
1 Parent(s): 28d81d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -412,7 +412,14 @@ def text_to_image(prompt: str, height: int, width: int, steps: int, scales: floa
412
  torch.cuda.synchronize()
413
  gc.collect()
414
 
415
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
 
 
 
 
 
 
 
416
  gr.Markdown("""## Craft3D""")
417
 
418
  # Examples ์ด๋ฏธ์ง€ ๋กœ๋“œ
@@ -491,6 +498,15 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
491
  extract_glb_btn = gr.Button("Extract GLB", interactive=False)
492
 
493
  with gr.Column():
 
 
 
 
 
 
 
 
 
494
  video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
495
  model_output = LitModel3D(label="Extracted GLB", exposure=20.0, height=300)
496
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
 
412
  torch.cuda.synchronize()
413
  gc.collect()
414
 
415
+ css = """
416
+ footer {
417
+ visibility: hidden;
418
+ }
419
+ """
420
+
421
+
422
+ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
423
  gr.Markdown("""## Craft3D""")
424
 
425
  # Examples ์ด๋ฏธ์ง€ ๋กœ๋“œ
 
498
  extract_glb_btn = gr.Button("Extract GLB", interactive=False)
499
 
500
  with gr.Column():
501
+ # ์ƒ๋‹จ์— 3d.mp4 ์ž๋™์žฌ์ƒ ๋น„๋””์˜ค ์ถ”๊ฐ€
502
+ gr.Video(
503
+ "3d.mp4",
504
+ label="3D Asset Preview",
505
+ autoplay=True,
506
+ loop=True,
507
+ height=300,
508
+ width="100%"
509
+ )
510
  video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
511
  model_output = LitModel3D(label="Extracted GLB", exposure=20.0, height=300)
512
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)