RageshAntony commited on
Commit
0696a08
·
verified ·
1 Parent(s): 3396a4f
Files changed (1) hide show
  1. check_app.py +2 -2
check_app.py CHANGED
@@ -258,7 +258,7 @@ def main():
258
 
259
  for model_name, config in MODEL_CONFIGS.items():
260
  #global gallery
261
- with gr.Tab(model_name):
262
  button = gr.Button(f"Run {model_name}")
263
  output = gr.Textbox(label="Status")
264
  img = gr.Image(label=model_name, height=300)
@@ -274,7 +274,7 @@ def main():
274
  object_fit="contain"
275
  )
276
 
277
- tabs.select(
278
  fn=load_images_from_directory,
279
  inputs=[gr.Text(value= model_name,visible=False)],
280
  outputs=[gallery],
 
258
 
259
  for model_name, config in MODEL_CONFIGS.items():
260
  #global gallery
261
+ with gr.Tab(model_name) as tab_model:
262
  button = gr.Button(f"Run {model_name}")
263
  output = gr.Textbox(label="Status")
264
  img = gr.Image(label=model_name, height=300)
 
274
  object_fit="contain"
275
  )
276
 
277
+ tab_model.select(
278
  fn=load_images_from_directory,
279
  inputs=[gr.Text(value= model_name,visible=False)],
280
  outputs=[gallery],