Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1334,7 +1334,7 @@ def handle_generation(artist,song,lyrics,h,w):
|
|
1334 |
Negative: {neg}
|
1335 |
""")
|
1336 |
|
1337 |
-
img = all_pipes(pos,neg,h,w)
|
1338 |
|
1339 |
labeled_img = add_song_cover_text(img,pos_artist,pos_song,h,w)
|
1340 |
name = f'{generate_random_string(8)}.png'
|
@@ -1357,7 +1357,7 @@ if __name__ == "__main__":
|
|
1357 |
""")
|
1358 |
|
1359 |
with gr.Row():
|
1360 |
-
with gr.Column(scale=
|
1361 |
artist = gr.Textbox(
|
1362 |
placeholder="Top title",
|
1363 |
value="",
|
@@ -1376,18 +1376,18 @@ if __name__ == "__main__":
|
|
1376 |
width = gr.Slider(
|
1377 |
label="Width (px)",
|
1378 |
minimum=512,
|
1379 |
-
maximum=
|
1380 |
-
step=
|
1381 |
-
value=
|
1382 |
)
|
1383 |
|
1384 |
|
1385 |
height = gr.Slider(
|
1386 |
label="Height (px)",
|
1387 |
minimum=512,
|
1388 |
-
maximum=
|
1389 |
-
step=
|
1390 |
-
value=
|
1391 |
)
|
1392 |
|
1393 |
lyrics = gr.Textbox(
|
|
|
1334 |
Negative: {neg}
|
1335 |
""")
|
1336 |
|
1337 |
+
img = all_pipes(pos,neg,h,w)
|
1338 |
|
1339 |
labeled_img = add_song_cover_text(img,pos_artist,pos_song,h,w)
|
1340 |
name = f'{generate_random_string(8)}.png'
|
|
|
1357 |
""")
|
1358 |
|
1359 |
with gr.Row():
|
1360 |
+
with gr.Column(scale=2):
|
1361 |
artist = gr.Textbox(
|
1362 |
placeholder="Top title",
|
1363 |
value="",
|
|
|
1376 |
width = gr.Slider(
|
1377 |
label="Width (px)",
|
1378 |
minimum=512,
|
1379 |
+
maximum=1536,
|
1380 |
+
step=16,
|
1381 |
+
value=1536,
|
1382 |
)
|
1383 |
|
1384 |
|
1385 |
height = gr.Slider(
|
1386 |
label="Height (px)",
|
1387 |
minimum=512,
|
1388 |
+
maximum=1536,
|
1389 |
+
step=16,
|
1390 |
+
value=1536,
|
1391 |
)
|
1392 |
|
1393 |
lyrics = gr.Textbox(
|