Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -631,7 +631,7 @@ footer {
|
|
631 |
display: none !important;
|
632 |
}
|
633 |
.image-container {
|
634 |
-
aspect-ratio:
|
635 |
}
|
636 |
.dropdown-arrow {
|
637 |
display: none !important;
|
@@ -1505,7 +1505,7 @@ if __name__ == "__main__":
|
|
1505 |
""")
|
1506 |
|
1507 |
with gr.Row():
|
1508 |
-
with gr.Column(scale=
|
1509 |
|
1510 |
height = gr.Slider(
|
1511 |
label="Height (px)",
|
@@ -1524,7 +1524,21 @@ if __name__ == "__main__":
|
|
1524 |
)
|
1525 |
|
1526 |
run = gr.Button("Generate",elem_classes="btn")
|
1527 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1528 |
data = gr.Textbox(
|
1529 |
placeholder="Input data",
|
1530 |
value="",
|
@@ -1534,22 +1548,8 @@ if __name__ == "__main__":
|
|
1534 |
|
1535 |
with gr.Column():
|
1536 |
cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='pil', show_share_button=False)
|
1537 |
-
|
1538 |
-
|
1539 |
-
with gr.Column():
|
1540 |
-
top = gr.Textbox(
|
1541 |
-
placeholder="Top title",
|
1542 |
-
value="",
|
1543 |
-
container=False,
|
1544 |
-
max_lines=1
|
1545 |
-
)
|
1546 |
-
bottom = gr.Textbox(
|
1547 |
-
placeholder="Bottom title",
|
1548 |
-
value="",
|
1549 |
-
container=False,
|
1550 |
-
max_lines=1
|
1551 |
-
)
|
1552 |
-
add_titles = gr.Button("Add title(s)",elem_classes="btn")
|
1553 |
gr.on(
|
1554 |
triggers=[run.click],
|
1555 |
fn=handle_generation,
|
|
|
631 |
display: none !important;
|
632 |
}
|
633 |
.image-container {
|
634 |
+
aspect-ratio: 16/9 !important;
|
635 |
}
|
636 |
.dropdown-arrow {
|
637 |
display: none !important;
|
|
|
1505 |
""")
|
1506 |
|
1507 |
with gr.Row():
|
1508 |
+
with gr.Column(scale=2):
|
1509 |
|
1510 |
height = gr.Slider(
|
1511 |
label="Height (px)",
|
|
|
1524 |
)
|
1525 |
|
1526 |
run = gr.Button("Generate",elem_classes="btn")
|
1527 |
+
|
1528 |
+
top = gr.Textbox(
|
1529 |
+
placeholder="Top title",
|
1530 |
+
value="",
|
1531 |
+
container=False,
|
1532 |
+
max_lines=1
|
1533 |
+
)
|
1534 |
+
bottom = gr.Textbox(
|
1535 |
+
placeholder="Bottom title",
|
1536 |
+
value="",
|
1537 |
+
container=False,
|
1538 |
+
max_lines=1
|
1539 |
+
)
|
1540 |
+
add_titles = gr.Button("Add title(s)",elem_classes="btn")
|
1541 |
+
|
1542 |
data = gr.Textbox(
|
1543 |
placeholder="Input data",
|
1544 |
value="",
|
|
|
1548 |
|
1549 |
with gr.Column():
|
1550 |
cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='pil', show_share_button=False)
|
1551 |
+
upscale_now = gr.Button("Upscale",elem_classes="btn")
|
1552 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1553 |
gr.on(
|
1554 |
triggers=[run.click],
|
1555 |
fn=handle_generation,
|