Spaces:
Running
Running
Commit
·
a50a535
1
Parent(s):
b551f40
Update app.py
Browse files
app.py
CHANGED
@@ -158,9 +158,9 @@ def predict(input):
|
|
158 |
css = '''
|
159 |
.container {max-width: 100%;margin: auto;padding-top: 1.5rem}
|
160 |
.output-image, .input-image, .image-preview {height: 600px !important;object-fit: contain}
|
161 |
-
#image_upload{height:
|
162 |
-
#image_upload [data-testid="image"]
|
163 |
-
#
|
164 |
#mask_radio .gr-form{background:transparent; border: none; color:#00ff00}
|
165 |
#word_mask{margin-top: .75em !important}
|
166 |
#word_mask textarea:disabled{opacity: 0.3}
|
@@ -209,7 +209,7 @@ with image_blocks as demo:
|
|
209 |
rounded=(True, True, True, True),
|
210 |
full_width=True,
|
211 |
)
|
212 |
-
|
213 |
with gr.Column():
|
214 |
image_out = gr.Image(label="Output", elem_id="image_output", visible=True)# .style(width=768)
|
215 |
btn_in.click(fn=predict, inputs=[image], outputs=[image_out])
|
|
|
158 |
css = '''
|
159 |
.container {max-width: 100%;margin: auto;padding-top: 1.5rem}
|
160 |
.output-image, .input-image, .image-preview {height: 600px !important;object-fit: contain}
|
161 |
+
#image_upload{min-height:610px}
|
162 |
+
#image_upload [data-testid="image"], #image_upload [data-testid="image"] > div{min-height: 620px}
|
163 |
+
#mask_radio .gr-form{background:transparent; border: none}
|
164 |
#mask_radio .gr-form{background:transparent; border: none; color:#00ff00}
|
165 |
#word_mask{margin-top: .75em !important}
|
166 |
#word_mask textarea:disabled{opacity: 0.3}
|
|
|
209 |
rounded=(True, True, True, True),
|
210 |
full_width=True,
|
211 |
)
|
212 |
+
with gr.Row():
|
213 |
with gr.Column():
|
214 |
image_out = gr.Image(label="Output", elem_id="image_output", visible=True)# .style(width=768)
|
215 |
btn_in.click(fn=predict, inputs=[image], outputs=[image_out])
|