Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
39 |
gr.Markdown(
|
40 |
"""
|
41 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
42 |
-
|
43 |
-
|
44 |
</div>
|
45 |
"""
|
46 |
)
|
@@ -53,34 +53,34 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
53 |
placeholder="E.g., A serene landscape with mountains and a lake at sunset",
|
54 |
lines=3
|
55 |
)
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
|
71 |
with gr.Column(scale=4):
|
72 |
output = gr.Image(label="Your Generated Image")
|
73 |
-
|
74 |
gr.Markdown(
|
75 |
"""
|
76 |
<div style="max-width: 650px; margin: 2rem auto; padding: 1rem; border-radius: 10px; background-color: #f0f0f0;">
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
</div>
|
85 |
"""
|
86 |
)
|
@@ -107,3 +107,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
107 |
|
108 |
if __name__ == "__main__":
|
109 |
demo.launch()
|
|
|
|
39 |
gr.Markdown(
|
40 |
"""
|
41 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
42 |
+
<h1 style="font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; display: contents;">Hyper-FLUX-8steps-LoRA</h1>
|
43 |
+
<p style="font-size: 1rem; margin-bottom: 1.5rem;">AutoML team from ByteDance</p>
|
44 |
</div>
|
45 |
"""
|
46 |
)
|
|
|
53 |
placeholder="E.g., A serene landscape with mountains and a lake at sunset",
|
54 |
lines=3
|
55 |
)
|
56 |
+
|
57 |
+
with gr.Accordion("Advanced Settings", open=False):
|
58 |
+
with gr.Group():
|
59 |
+
with gr.Row():
|
60 |
+
height = gr.Slider(label="Height", minimum=256, maximum=1152, step=64, value=1024)
|
61 |
+
width = gr.Slider(label="Width", minimum=256, maximum=1152, step=64, value=1024)
|
62 |
+
|
63 |
+
with gr.Row():
|
64 |
+
steps = gr.Slider(label="Inference Steps", minimum=6, maximum=25, step=1, value=8)
|
65 |
+
scales = gr.Slider(label="Guidance Scale", minimum=0.0, maximum=5.0, step=0.1, value=3.5)
|
66 |
+
|
67 |
+
seed = gr.Number(label="Seed (for reproducibility)", value=3413, precision=0)
|
68 |
+
|
69 |
+
generate_btn = gr.Button("Generate Image", variant="primary", scale=1)
|
70 |
|
71 |
with gr.Column(scale=4):
|
72 |
output = gr.Image(label="Your Generated Image")
|
73 |
+
|
74 |
gr.Markdown(
|
75 |
"""
|
76 |
<div style="max-width: 650px; margin: 2rem auto; padding: 1rem; border-radius: 10px; background-color: #f0f0f0;">
|
77 |
+
<h2 style="font-size: 1.5rem; margin-bottom: 1rem;">How to Use</h2>
|
78 |
+
<ol style="padding-left: 1.5rem;">
|
79 |
+
<li>Enter a detailed description of the image you want to create.</li>
|
80 |
+
<li>Adjust advanced settings if desired (tap to expand).</li>
|
81 |
+
<li>Tap "Generate Image" and wait for your creation!</li>
|
82 |
+
</ol>
|
83 |
+
<p style="margin-top: 1rem; font-style: italic;">Tip: Be specific in your description for best results!</p>
|
84 |
</div>
|
85 |
"""
|
86 |
)
|
|
|
107 |
|
108 |
if __name__ == "__main__":
|
109 |
demo.launch()
|
110 |
+
|