Steven18 commited on
Commit
2bc7b43
·
1 Parent(s): be414fd
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -335,6 +335,9 @@ def test_for_api_gen(image: Image.Image) -> Image.Image:
335
  """
336
  return image
337
 
 
 
 
338
 
339
 
340
  with gr.Blocks(delete_cache=(600, 600)) as demo:
@@ -376,10 +379,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
376
  """)
377
 
378
  is_multiimage = gr.Radio(choices=["true", "false"],value="false",label="Use multi-image mode",visible=True)
379
- def update_is_multiimage(tab_index: int):
380
- return "true" if tab_index == 1 else "false"
381
  input_tabs.select(fn=update_is_multiimage,inputs=None,outputs=is_multiimage)
382
-
383
 
384
  with gr.Accordion(label="Generation Settings", open=False):
385
  seed = gr.Slider(0, MAX_SEED, label="Seed", value=0, step=1)
@@ -420,7 +420,6 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
420
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
421
  download_gs = gr.DownloadButton(label="Download Gaussian", interactive=False)
422
 
423
- is_multiimage = gr.State(False)
424
  output_buf = gr.State()
425
 
426
  # Example images at the bottom of the page
 
335
  """
336
  return image
337
 
338
+ def update_is_multiimage(selected_tab: str):
339
+ return "true" if selected_tab == "Multiple Images" else "false"
340
+
341
 
342
 
343
  with gr.Blocks(delete_cache=(600, 600)) as demo:
 
379
  """)
380
 
381
  is_multiimage = gr.Radio(choices=["true", "false"],value="false",label="Use multi-image mode",visible=True)
 
 
382
  input_tabs.select(fn=update_is_multiimage,inputs=None,outputs=is_multiimage)
 
383
 
384
  with gr.Accordion(label="Generation Settings", open=False):
385
  seed = gr.Slider(0, MAX_SEED, label="Seed", value=0, step=1)
 
420
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
421
  download_gs = gr.DownloadButton(label="Download Gaussian", interactive=False)
422
 
 
423
  output_buf = gr.State()
424
 
425
  # Example images at the bottom of the page