Spaces:
Running
on
Zero
Running
on
Zero
RageshAntony
commited on
fix
Browse files- 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 |
-
|
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],
|