Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1343,23 +1343,9 @@ if __name__ == "__main__":
|
|
1343 |
container=False,
|
1344 |
max_lines=2
|
1345 |
)
|
|
|
1346 |
run = gr.Button("Generate",elem_classes="btn")
|
1347 |
-
|
1348 |
-
with gr.Column():
|
1349 |
-
cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False)
|
1350 |
-
up_scale_factor = gr.Slider(
|
1351 |
-
label="Upscale",
|
1352 |
-
minimum=2,
|
1353 |
-
maximum=4,
|
1354 |
-
step=1,
|
1355 |
-
value=3,
|
1356 |
-
)
|
1357 |
-
upscale_now = gr.Button("Upscale",elem_classes="btn")
|
1358 |
|
1359 |
-
|
1360 |
-
with gr.Row():
|
1361 |
-
|
1362 |
-
with gr.Column():
|
1363 |
width = gr.Slider(
|
1364 |
label="Width (px)",
|
1365 |
minimum=512,
|
@@ -1368,7 +1354,7 @@ if __name__ == "__main__":
|
|
1368 |
value=1536,
|
1369 |
)
|
1370 |
|
1371 |
-
|
1372 |
height = gr.Slider(
|
1373 |
label="Height (px)",
|
1374 |
minimum=512,
|
@@ -1376,14 +1362,24 @@ if __name__ == "__main__":
|
|
1376 |
step=256,
|
1377 |
value=1536,
|
1378 |
)
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1387 |
|
1388 |
run.click(
|
1389 |
fn=handle_generation,
|
|
|
1343 |
container=False,
|
1344 |
max_lines=2
|
1345 |
)
|
1346 |
+
|
1347 |
run = gr.Button("Generate",elem_classes="btn")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1348 |
|
|
|
|
|
|
|
|
|
1349 |
width = gr.Slider(
|
1350 |
label="Width (px)",
|
1351 |
minimum=512,
|
|
|
1354 |
value=1536,
|
1355 |
)
|
1356 |
|
1357 |
+
|
1358 |
height = gr.Slider(
|
1359 |
label="Height (px)",
|
1360 |
minimum=512,
|
|
|
1362 |
step=256,
|
1363 |
value=1536,
|
1364 |
)
|
1365 |
+
|
1366 |
+
lyrics = gr.Textbox(
|
1367 |
+
placeholder="Textual data (multilingual)",
|
1368 |
+
value="",
|
1369 |
+
container=False,
|
1370 |
+
max_lines=1000
|
1371 |
+
)
|
1372 |
+
|
1373 |
+
with gr.Column():
|
1374 |
+
cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False)
|
1375 |
+
up_scale_factor = gr.Slider(
|
1376 |
+
label="Upscale",
|
1377 |
+
minimum=2,
|
1378 |
+
maximum=4,
|
1379 |
+
step=1,
|
1380 |
+
value=3,
|
1381 |
+
)
|
1382 |
+
upscale_now = gr.Button("Upscale",elem_classes="btn")
|
1383 |
|
1384 |
run.click(
|
1385 |
fn=handle_generation,
|