Spaces:
Runtime error
Runtime error
Change text size
Browse files
app.py
CHANGED
|
@@ -265,16 +265,16 @@ def uncrop(
|
|
| 265 |
minutes = minutes - (hours * 60)
|
| 266 |
return [
|
| 267 |
output_image,
|
| 268 |
-
("Start again to get a different result. " if is_randomize_seed else "") + "The new image is " + str(output_width) + " pixels large and " + str(output_height) + " pixels high, so an image of " + f'{output_width * output_height:,}' + " pixels. The image
|
| 269 |
input_image,
|
| 270 |
enlarged_image,
|
| 271 |
mask_image
|
| 272 |
]
|
| 273 |
|
| 274 |
with gr.Blocks() as interface:
|
| 275 |
-
gr.
|
| 276 |
"""
|
| 277 |
-
<
|
| 278 |
<p style="text-align: center;">Enlarges the point of view of your image, freely, without account, without watermark, without installation, which can be downloaded</p>
|
| 279 |
<br/>
|
| 280 |
<br/>
|
|
@@ -339,7 +339,7 @@ with gr.Blocks() as interface:
|
|
| 339 |
with gr.Row():
|
| 340 |
uncropped_image = gr.Image(label = "Uncropped image")
|
| 341 |
with gr.Row():
|
| 342 |
-
information = gr.
|
| 343 |
with gr.Row():
|
| 344 |
original_image = gr.Image(label = "Original image", visible = False)
|
| 345 |
with gr.Row():
|
|
|
|
| 265 |
minutes = minutes - (hours * 60)
|
| 266 |
return [
|
| 267 |
output_image,
|
| 268 |
+
("Start again to get a different result. " if is_randomize_seed else "") + "The new image is " + str(output_width) + " pixels large and " + str(output_height) + " pixels high, so an image of " + f'{output_width * output_height:,}' + " pixels. The image has been generated in " + ((str(hours) + " h, ") if hours != 0 else "") + ((str(minutes) + " min, ") if hours != 0 or minutes != 0 else "") + str(secondes) + " sec." + limitation,
|
| 269 |
input_image,
|
| 270 |
enlarged_image,
|
| 271 |
mask_image
|
| 272 |
]
|
| 273 |
|
| 274 |
with gr.Blocks() as interface:
|
| 275 |
+
gr.HTML(
|
| 276 |
"""
|
| 277 |
+
<h1 style="text-align: center;">Uncrop</h1>
|
| 278 |
<p style="text-align: center;">Enlarges the point of view of your image, freely, without account, without watermark, without installation, which can be downloaded</p>
|
| 279 |
<br/>
|
| 280 |
<br/>
|
|
|
|
| 339 |
with gr.Row():
|
| 340 |
uncropped_image = gr.Image(label = "Uncropped image")
|
| 341 |
with gr.Row():
|
| 342 |
+
information = gr.HTML()
|
| 343 |
with gr.Row():
|
| 344 |
original_image = gr.Image(label = "Original image", visible = False)
|
| 345 |
with gr.Row():
|