Spaces:
Runtime error
Runtime error
The space is still very slow; let's try without CSS
#3
by
Fabrice-TIERCELIN
- opened
app.py
CHANGED
@@ -144,18 +144,7 @@ def resize_image(image, output_size=(1024, 576)):
|
|
144 |
cropped_image = resized_image.crop((left, top, right, bottom))
|
145 |
return cropped_image
|
146 |
|
147 |
-
|
148 |
-
css = """
|
149 |
-
img, video {
|
150 |
-
max-height: 400px;
|
151 |
-
object-fit: contain;
|
152 |
-
}
|
153 |
-
video {
|
154 |
-
margin: 0 auto
|
155 |
-
}
|
156 |
-
"""
|
157 |
-
|
158 |
-
with gr.Blocks(css=css) as SVD_XT_1_1:
|
159 |
with gr.Row():
|
160 |
with gr.Column():
|
161 |
image = gr.Image(label="Upload your image", type="pil")
|
|
|
144 |
cropped_image = resized_image.crop((left, top, right, bottom))
|
145 |
return cropped_image
|
146 |
|
147 |
+
with gr.Blocks() as SVD_XT_1_1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
with gr.Row():
|
149 |
with gr.Column():
|
150 |
image = gr.Image(label="Upload your image", type="pil")
|