Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def add_gallery(image, model_str, gallery):
|
|
| 112 |
if image is not None: gallery.insert(0, (image, model_str))
|
| 113 |
return gallery
|
| 114 |
|
| 115 |
-
|
| 116 |
<script>
|
| 117 |
|
| 118 |
/*
|
|
@@ -167,7 +167,6 @@ window.addEventListener('load', () => {
|
|
| 167 |
|
| 168 |
CSS="""
|
| 169 |
<style>
|
| 170 |
-
.gallery { min_width=512px; min_height=512px; max_height=512px; !important; }
|
| 171 |
.image-monitor {
|
| 172 |
border:1px solid red;
|
| 173 |
}
|
|
@@ -181,7 +180,7 @@ CSS="""
|
|
| 181 |
"""
|
| 182 |
|
| 183 |
# with gr.Blocks(fill_width=True, head=js) as demo:
|
| 184 |
-
with gr.Blocks(head=
|
| 185 |
with gr.Tab(str(num_models) + ' Models'):
|
| 186 |
with gr.Column(scale=2):
|
| 187 |
with gr.Group():
|
|
|
|
| 112 |
if image is not None: gallery.insert(0, (image, model_str))
|
| 113 |
return gallery
|
| 114 |
|
| 115 |
+
JS="""
|
| 116 |
<script>
|
| 117 |
|
| 118 |
/*
|
|
|
|
| 167 |
|
| 168 |
CSS="""
|
| 169 |
<style>
|
|
|
|
| 170 |
.image-monitor {
|
| 171 |
border:1px solid red;
|
| 172 |
}
|
|
|
|
| 180 |
"""
|
| 181 |
|
| 182 |
# with gr.Blocks(fill_width=True, head=js) as demo:
|
| 183 |
+
with gr.Blocks(head=CSS + JS) as demo:
|
| 184 |
with gr.Tab(str(num_models) + ' Models'):
|
| 185 |
with gr.Column(scale=2):
|
| 186 |
with gr.Group():
|