Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def add_gallery(image, model_str, gallery):
|
|
112 |
if gallery is None: gallery = []
|
113 |
with lock:
|
114 |
if image is not None: gallery.insert(0, (image, model_str))
|
115 |
-
if image is not None: imgageHasUpdated(model_str)
|
116 |
return gallery
|
117 |
|
118 |
JS="""
|
@@ -218,6 +218,7 @@ with gr.Blocks(head=CSS + JS) as demo:
|
|
218 |
with gr.Group():
|
219 |
with gr.Row():
|
220 |
output = [gr.Image(label=m, show_download_button=True, elem_classes=["image-monitor"], interactive=False, width=112, height=112, show_share_button=False, format="png", visible=True) for m in default_models]
|
|
|
221 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
222 |
|
223 |
with gr.Column(scale=2):
|
|
|
112 |
if gallery is None: gallery = []
|
113 |
with lock:
|
114 |
if image is not None: gallery.insert(0, (image, model_str))
|
115 |
+
# if image is not None: imgageHasUpdated(model_str)
|
116 |
return gallery
|
117 |
|
118 |
JS="""
|
|
|
218 |
with gr.Group():
|
219 |
with gr.Row():
|
220 |
output = [gr.Image(label=m, show_download_button=True, elem_classes=["image-monitor"], interactive=False, width=112, height=112, show_share_button=False, format="png", visible=True) for m in default_models]
|
221 |
+
imgageHasUpdated(output)
|
222 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
223 |
|
224 |
with gr.Column(scale=2):
|