staswrs commited on
Commit
a13dc55
·
1 Parent(s): 2e0a08b
Files changed (1) hide show
  1. app.py +13 -6
app.py CHANGED
@@ -295,15 +295,22 @@ def generation_all(
295
  textured=True)
296
  if args.low_vram_mode:
297
  torch.cuda.empty_cache()
 
 
 
 
 
 
 
 
298
  return (
299
- gr.update(value=path),
300
- gr.update(value=path_textured),
301
  model_viewer_html_textured,
302
  stats,
303
  seed,
304
  )
305
 
306
-
307
  def shape_generation(
308
  caption=None,
309
  image=None,
@@ -423,8 +430,8 @@ def build_app():
423
  min_width=100)
424
 
425
  with gr.Group():
426
- file_out = gr.File(label="File", visible=False)
427
- file_out2 = gr.File(label="File", visible=False)
428
 
429
  with gr.Tabs(selected='tab_options' if TURBO_MODE else 'tab_export'):
430
  with gr.Tab("Options", id='tab_options', visible=TURBO_MODE):
@@ -750,7 +757,7 @@ if __name__ == '__main__':
750
 
751
  # if args.low_vram_mode:
752
  # torch.cuda.empty_cache()
753
- # demo = build_app()
754
  # app = gr.mount_gradio_app(app, demo, path="/")
755
  # uvicorn.run(app, host=args.host, port=args.port, workers=1)
756
 
 
295
  textured=True)
296
  if args.low_vram_mode:
297
  torch.cuda.empty_cache()
298
+ # return (
299
+ # gr.update(value=path),
300
+ # gr.update(value=path_textured),
301
+ # model_viewer_html_textured,
302
+ # stats,
303
+ # seed,
304
+ # )
305
+
306
  return (
307
+ gr.update(value=path, visible=True),
308
+ gr.update(value=path_textured, visible=True),
309
  model_viewer_html_textured,
310
  stats,
311
  seed,
312
  )
313
 
 
314
  def shape_generation(
315
  caption=None,
316
  image=None,
 
430
  min_width=100)
431
 
432
  with gr.Group():
433
+ file_out = gr.File(label="File", visible=True) # False default
434
+ file_out2 = gr.File(label="File", visible=True) # False default
435
 
436
  with gr.Tabs(selected='tab_options' if TURBO_MODE else 'tab_export'):
437
  with gr.Tab("Options", id='tab_options', visible=TURBO_MODE):
 
757
 
758
  # if args.low_vram_mode:
759
  # torch.cuda.empty_cache()
760
+ # demo = build_app()g
761
  # app = gr.mount_gradio_app(app, demo, path="/")
762
  # uvicorn.run(app, host=args.host, port=args.port, workers=1)
763