Spaces:
Running
on
Zero
Running
on
Zero
Julian Bilcke
commited on
Commit
·
2c17af0
1
Parent(s):
85186d4
up
Browse files- app.py +9 -5
- page_layouts.yaml +21 -21
- style_presets.yaml +8 -8
app.py
CHANGED
|
@@ -1016,8 +1016,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 1016 |
|
| 1017 |
with gr.Column(elem_id="col-container"):
|
| 1018 |
gr.HTML("""
|
| 1019 |
-
<div id="logo-title" style="display: flex; align-items: center; justify-content: center; padding:
|
| 1020 |
-
<img src="/gradio_api/file=logo.png" alt="AI Comic Factory Logo" style="max-height:
|
| 1021 |
<div style="position: relative; display: flex; flex-direction: column; align-items: center;">
|
| 1022 |
|
| 1023 |
<style>
|
|
@@ -1105,10 +1105,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 1105 |
num_images_slider = gr.Slider(
|
| 1106 |
label="Images per page",
|
| 1107 |
minimum=1,
|
| 1108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1109 |
step=1,
|
| 1110 |
-
value=
|
| 1111 |
-
info="Number of images to generate for the PDF
|
| 1112 |
)
|
| 1113 |
|
| 1114 |
# Page layout dropdown
|
|
|
|
| 1016 |
|
| 1017 |
with gr.Column(elem_id="col-container"):
|
| 1018 |
gr.HTML("""
|
| 1019 |
+
<div id="logo-title" style="display: flex; align-items: center; justify-content: center; padding: 0px 0; position: relative;">
|
| 1020 |
+
<img src="/gradio_api/file=logo.png" alt="AI Comic Factory Logo" style="max-height: 100px; width: auto; margin-right: 0px; border-radius: 6px;">
|
| 1021 |
<div style="position: relative; display: flex; flex-direction: column; align-items: center;">
|
| 1022 |
|
| 1023 |
<style>
|
|
|
|
| 1105 |
num_images_slider = gr.Slider(
|
| 1106 |
label="Images per page",
|
| 1107 |
minimum=1,
|
| 1108 |
+
|
| 1109 |
+
# we can support 8, but we will need better layouts
|
| 1110 |
+
# also starting from 8 I notice some latency for story generation
|
| 1111 |
+
maximum=7,
|
| 1112 |
+
|
| 1113 |
step=1,
|
| 1114 |
+
value=6,
|
| 1115 |
+
info="Number of images to generate for the PDF"
|
| 1116 |
)
|
| 1117 |
|
| 1118 |
# Page layout dropdown
|
page_layouts.yaml
CHANGED
|
@@ -635,27 +635,27 @@ layouts:
|
|
| 635 |
- {panel_type: "reaction", focus: "emotion", composition: "landscape", shot_type: "closeup", camera_angle: "eye_level"}
|
| 636 |
- {panel_type: "reaction", focus: "emotion", composition: "landscape", shot_type: "closeup", camera_angle: "eye_level"}
|
| 637 |
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
|
| 657 |
-
|
| 658 |
-
|
| 659 |
|
| 660 |
- id: "magazine_style"
|
| 661 |
label: "Magazine Style"
|
|
|
|
| 635 |
- {panel_type: "reaction", focus: "emotion", composition: "landscape", shot_type: "closeup", camera_angle: "eye_level"}
|
| 636 |
- {panel_type: "reaction", focus: "emotion", composition: "landscape", shot_type: "closeup", camera_angle: "eye_level"}
|
| 637 |
|
| 638 |
+
#- id: "hero_explosion"
|
| 639 |
+
# label: "Hero Explosion"
|
| 640 |
+
# description: "Central impact radiating outward"
|
| 641 |
+
# positions:
|
| 642 |
+
# - [0.02, 0.02, 0.3, 0.3]
|
| 643 |
+
# - [0.68, 0.02, 0.3, 0.3]
|
| 644 |
+
# - [0.02, 0.68, 0.3, 0.3]
|
| 645 |
+
# - [0.68, 0.68, 0.3, 0.3]
|
| 646 |
+
# - [0.34, 0.02, 0.32, 0.28]
|
| 647 |
+
# - [0.02, 0.34, 0.28, 0.32]
|
| 648 |
+
# - [0.7, 0.34, 0.28, 0.32]
|
| 649 |
+
# - [0.34, 0.7, 0.32, 0.28]
|
| 650 |
+
# metadata:
|
| 651 |
+
# - {panel_type: "detail", focus: "object", composition: "square", shot_type: "closeup", camera_angle: "overhead"}
|
| 652 |
+
# - {panel_type: "detail", focus: "object", composition: "square", shot_type: "extreme_closeup", camera_angle: "eye_level"}
|
| 653 |
+
# - {panel_type: "detail", focus: "character", composition: "square", shot_type: "closeup", camera_angle: "low_angle"}
|
| 654 |
+
# - {panel_type: "detail", focus: "character", composition: "square", shot_type: "closeup", camera_angle: "high_angle"}
|
| 655 |
+
# - {panel_type: "action", focus: "event", composition: "landscape", shot_type: "medium", camera_angle: "dutch_angle"}
|
| 656 |
+
# - {panel_type: "action", focus: "event", composition: "portrait", shot_type: "full", camera_angle: "low_angle"}
|
| 657 |
+
# - {panel_type: "action", focus: "event", composition: "portrait", shot_type: "medium_full", camera_angle: "high_angle"}
|
| 658 |
+
# - {panel_type: "closeup", focus: "emotion", composition: "landscape", shot_type: "extreme_closeup", camera_angle: "pov"}
|
| 659 |
|
| 660 |
- id: "magazine_style"
|
| 661 |
label: "Magazine Style"
|
style_presets.yaml
CHANGED
|
@@ -176,14 +176,14 @@ presets:
|
|
| 176 |
# prompt_suffix: ""
|
| 177 |
# negative_prompt: "manga, anime, american comic, grayscale, monochrome, painting"
|
| 178 |
|
| 179 |
-
#
|
| 180 |
-
psx:
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
|
| 188 |
# pixel is commented out in the original
|
| 189 |
# pixel:
|
|
|
|
| 176 |
# prompt_suffix: ""
|
| 177 |
# negative_prompt: "manga, anime, american comic, grayscale, monochrome, painting"
|
| 178 |
|
| 179 |
+
# doesn't really work
|
| 180 |
+
#psx:
|
| 181 |
+
# id: "psx"
|
| 182 |
+
# label: "PSX"
|
| 183 |
+
# enabled: true
|
| 184 |
+
# prompt_prefix: "videogame screenshot, 3dfx, 3D dos game, software rendering"
|
| 185 |
+
# prompt_suffix: ""
|
| 186 |
+
# negative_prompt: "manga, anime, american comic, grayscale, monochrome, painting"
|
| 187 |
|
| 188 |
# pixel is commented out in the original
|
| 189 |
# pixel:
|