Spaces:
Running
on
Zero
Running
on
Zero
Julian Bilcke
commited on
Commit
·
cd4eaba
1
Parent(s):
e8408ae
up
Browse files
app.py
CHANGED
|
@@ -1019,7 +1019,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 1019 |
# Row 1: Logo, Inputs, Buttons
|
| 1020 |
with gr.Row():
|
| 1021 |
# Column 1: Logo
|
| 1022 |
-
with gr.Column(scale=
|
| 1023 |
gr.HTML("""
|
| 1024 |
<div id="logo-title" style="display: flex; align-items: center; justify-content: center; padding: 0px 0; position: relative;">
|
| 1025 |
<img src="/gradio_api/file=logo.png" alt="AI Comic Factory Logo" style="max-height: 100px; width: auto; margin-right: 0px; border-radius: 6px;">
|
|
@@ -1074,7 +1074,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 1074 |
""")
|
| 1075 |
|
| 1076 |
# Column 2: Inputs
|
| 1077 |
-
with gr.Column(scale=
|
| 1078 |
# Sub-row 1: Prompt
|
| 1079 |
prompt = gr.Text(
|
| 1080 |
label="Prompt",
|
|
@@ -1117,14 +1117,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 1117 |
)
|
| 1118 |
|
| 1119 |
# Column 3: Buttons
|
| 1120 |
-
with gr.Column(scale=
|
| 1121 |
run_button = gr.Button("Generate page 1", variant="primary")
|
| 1122 |
reset_button = gr.Button("Reset", variant="secondary")
|
| 1123 |
|
| 1124 |
# Row 2: Settings column and PDF preview
|
| 1125 |
with gr.Row():
|
| 1126 |
# Left column - Additional settings
|
| 1127 |
-
with gr.Column(scale=
|
| 1128 |
custom_style_text = gr.Textbox(
|
| 1129 |
label="Custom Style Text",
|
| 1130 |
placeholder="Enter custom style (e.g., 'oil painting')",
|
|
|
|
| 1019 |
# Row 1: Logo, Inputs, Buttons
|
| 1020 |
with gr.Row():
|
| 1021 |
# Column 1: Logo
|
| 1022 |
+
with gr.Column(scale=0, min_width=140):
|
| 1023 |
gr.HTML("""
|
| 1024 |
<div id="logo-title" style="display: flex; align-items: center; justify-content: center; padding: 0px 0; position: relative;">
|
| 1025 |
<img src="/gradio_api/file=logo.png" alt="AI Comic Factory Logo" style="max-height: 100px; width: auto; margin-right: 0px; border-radius: 6px;">
|
|
|
|
| 1074 |
""")
|
| 1075 |
|
| 1076 |
# Column 2: Inputs
|
| 1077 |
+
with gr.Column(scale=1):
|
| 1078 |
# Sub-row 1: Prompt
|
| 1079 |
prompt = gr.Text(
|
| 1080 |
label="Prompt",
|
|
|
|
| 1117 |
)
|
| 1118 |
|
| 1119 |
# Column 3: Buttons
|
| 1120 |
+
with gr.Column(scale=0,min_width=200):
|
| 1121 |
run_button = gr.Button("Generate page 1", variant="primary")
|
| 1122 |
reset_button = gr.Button("Reset", variant="secondary")
|
| 1123 |
|
| 1124 |
# Row 2: Settings column and PDF preview
|
| 1125 |
with gr.Row():
|
| 1126 |
# Left column - Additional settings
|
| 1127 |
+
with gr.Column(scale=0):
|
| 1128 |
custom_style_text = gr.Textbox(
|
| 1129 |
label="Custom Style Text",
|
| 1130 |
placeholder="Enter custom style (e.g., 'oil painting')",
|