Spaces:
Runtime error
Runtime error
Fabrice-TIERCELIN
commited on
Enlarge display
Browse files
app.py
CHANGED
@@ -36,14 +36,7 @@ examples = [
|
|
36 |
"an anime illustration of a wiener schnitzel",
|
37 |
]
|
38 |
|
39 |
-
|
40 |
-
#col-container {
|
41 |
-
margin: 0 auto;
|
42 |
-
max-width: 520px;
|
43 |
-
}
|
44 |
-
"""
|
45 |
-
|
46 |
-
with gr.Blocks(css=css, delete_cache=(4000, 4000)) as demo:
|
47 |
|
48 |
with gr.Column(elem_id="col-container"):
|
49 |
gr.Markdown(f"""# [FLUX.1 [merged]](https://huggingface.co/sayakpaul/FLUX.1-merged)
|
@@ -51,14 +44,15 @@ Merge by [Sayak Paul](https://huggingface.co/sayakpaul) of 2 of the 12B param re
|
|
51 |
""")
|
52 |
|
53 |
prompt = gr.Text(
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
60 |
|
61 |
-
run_button = gr.Button("Run",
|
62 |
|
63 |
num_inference_steps = gr.Slider(
|
64 |
label="Number of inference steps",
|
@@ -68,8 +62,6 @@ Merge by [Sayak Paul](https://huggingface.co/sayakpaul) of 2 of the 12B param re
|
|
68 |
value=4,
|
69 |
)
|
70 |
|
71 |
-
result = gr.Image(label="Result", show_label=False, format="png")
|
72 |
-
|
73 |
with gr.Accordion("Advanced Settings", open=False):
|
74 |
|
75 |
with gr.Row():
|
@@ -110,6 +102,8 @@ Merge by [Sayak Paul](https://huggingface.co/sayakpaul) of 2 of the 12B param re
|
|
110 |
|
111 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
112 |
|
|
|
|
|
113 |
gr.Examples(
|
114 |
examples = examples,
|
115 |
fn = infer,
|
|
|
36 |
"an anime illustration of a wiener schnitzel",
|
37 |
]
|
38 |
|
39 |
+
with gr.Blocks(delete_cache=(4000, 4000)) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
with gr.Column(elem_id="col-container"):
|
42 |
gr.Markdown(f"""# [FLUX.1 [merged]](https://huggingface.co/sayakpaul/FLUX.1-merged)
|
|
|
44 |
""")
|
45 |
|
46 |
prompt = gr.Text(
|
47 |
+
label = "Prompt",
|
48 |
+
show_label = False,
|
49 |
+
lines = 2,
|
50 |
+
autofocus = True,
|
51 |
+
placeholder = "Enter your prompt",
|
52 |
+
container = False
|
53 |
+
)
|
54 |
|
55 |
+
run_button = gr.Button(value = "Run", variant="primary")
|
56 |
|
57 |
num_inference_steps = gr.Slider(
|
58 |
label="Number of inference steps",
|
|
|
62 |
value=4,
|
63 |
)
|
64 |
|
|
|
|
|
65 |
with gr.Accordion("Advanced Settings", open=False):
|
66 |
|
67 |
with gr.Row():
|
|
|
102 |
|
103 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
104 |
|
105 |
+
result = gr.Image(label="Result", show_label=False, format="png")
|
106 |
+
|
107 |
gr.Examples(
|
108 |
examples = examples,
|
109 |
fn = infer,
|