Spaces:
Runtime error
Runtime error
Change text size
Browse files
app.py
CHANGED
|
@@ -143,13 +143,13 @@ def pix2pix(
|
|
| 143 |
minutes = minutes - (hours * 60)
|
| 144 |
return [
|
| 145 |
output_image,
|
| 146 |
-
("Start again to get a different result. " if is_randomize_seed else "") + "The image
|
| 147 |
]
|
| 148 |
|
| 149 |
with gr.Blocks() as interface:
|
| 150 |
-
gr.
|
| 151 |
"""
|
| 152 |
-
<
|
| 153 |
<p style="text-align: center;">Modifies your image using a textual instruction, freely, without account, without watermark, without installation, which can be downloaded</p>
|
| 154 |
<br/>
|
| 155 |
<br/>
|
|
@@ -186,7 +186,7 @@ with gr.Blocks() as interface:
|
|
| 186 |
submit = gr.Button("🚀 Modify", variant = "primary")
|
| 187 |
|
| 188 |
modified_image = gr.Image(label = "Modified image")
|
| 189 |
-
information = gr.
|
| 190 |
|
| 191 |
submit.click(fn = update_seed, inputs = [
|
| 192 |
randomize_seed,
|
|
|
|
| 143 |
minutes = minutes - (hours * 60)
|
| 144 |
return [
|
| 145 |
output_image,
|
| 146 |
+
("Start again to get a different result. " if is_randomize_seed else "") + "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
|
| 147 |
]
|
| 148 |
|
| 149 |
with gr.Blocks() as interface:
|
| 150 |
+
gr.HTML(
|
| 151 |
"""
|
| 152 |
+
<h1 style="text-align: center;">Instruct Pix2Pix demo</h1>
|
| 153 |
<p style="text-align: center;">Modifies your image using a textual instruction, freely, without account, without watermark, without installation, which can be downloaded</p>
|
| 154 |
<br/>
|
| 155 |
<br/>
|
|
|
|
| 186 |
submit = gr.Button("🚀 Modify", variant = "primary")
|
| 187 |
|
| 188 |
modified_image = gr.Image(label = "Modified image")
|
| 189 |
+
information = gr.HTML()
|
| 190 |
|
| 191 |
submit.click(fn = update_seed, inputs = [
|
| 192 |
randomize_seed,
|