Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
from PIL import Image
|
5 |
|
6 |
model_id = 'pomercier/Francois_Legault'
|
7 |
-
prefix = ''
|
8 |
|
9 |
scheduler = DPMSolverMultistepScheduler(
|
10 |
beta_start=0.00085,
|
@@ -13,7 +13,7 @@ scheduler = DPMSolverMultistepScheduler(
|
|
13 |
num_train_timesteps=1000,
|
14 |
trained_betas=None,
|
15 |
predict_epsilon=True,
|
16 |
-
thresholding=
|
17 |
algorithm_type="dpmsolver++",
|
18 |
solver_type="midpoint",
|
19 |
lower_order_final=True,
|
@@ -94,7 +94,7 @@ with gr.Blocks(css=css) as demo:
|
|
94 |
f"""
|
95 |
<div class="main-div">
|
96 |
<div>
|
97 |
-
<h1>Francois Legault
|
98 |
</div>
|
99 |
<p>
|
100 |
To complete
|
@@ -118,7 +118,7 @@ with gr.Blocks(css=css) as demo:
|
|
118 |
with gr.Tab("Options"):
|
119 |
with gr.Group():
|
120 |
neg_prompt = gr.Textbox(label="Negative prompt", placeholder="What to exclude from the image")
|
121 |
-
auto_prefix = gr.Checkbox(label="Prefix styling tokens automatically ()", value=True)
|
122 |
|
123 |
with gr.Row():
|
124 |
guidance = gr.Slider(label="Guidance scale", value=7.5, maximum=15)
|
@@ -142,5 +142,12 @@ with gr.Blocks(css=css) as demo:
|
|
142 |
prompt.submit(inference, inputs=inputs, outputs=outputs)
|
143 |
generate.click(inference, inputs=inputs, outputs=outputs)
|
144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
demo.queue(concurrency_count=1)
|
146 |
demo.launch()
|
|
|
4 |
from PIL import Image
|
5 |
|
6 |
model_id = 'pomercier/Francois_Legault'
|
7 |
+
prefix = 'Francois Lefault'
|
8 |
|
9 |
scheduler = DPMSolverMultistepScheduler(
|
10 |
beta_start=0.00085,
|
|
|
13 |
num_train_timesteps=1000,
|
14 |
trained_betas=None,
|
15 |
predict_epsilon=True,
|
16 |
+
thresholding=False,
|
17 |
algorithm_type="dpmsolver++",
|
18 |
solver_type="midpoint",
|
19 |
lower_order_final=True,
|
|
|
94 |
f"""
|
95 |
<div class="main-div">
|
96 |
<div>
|
97 |
+
<h1>Francois Legault</h1>
|
98 |
</div>
|
99 |
<p>
|
100 |
To complete
|
|
|
118 |
with gr.Tab("Options"):
|
119 |
with gr.Group():
|
120 |
neg_prompt = gr.Textbox(label="Negative prompt", placeholder="What to exclude from the image")
|
121 |
+
auto_prefix = gr.Checkbox(label="Prefix styling tokens automatically (food_crit)", value=True)
|
122 |
|
123 |
with gr.Row():
|
124 |
guidance = gr.Slider(label="Guidance scale", value=7.5, maximum=15)
|
|
|
142 |
prompt.submit(inference, inputs=inputs, outputs=outputs)
|
143 |
generate.click(inference, inputs=inputs, outputs=outputs)
|
144 |
|
145 |
+
gr.HTML("""
|
146 |
+
<div style="border-top: 1px solid #303030;">
|
147 |
+
<br>
|
148 |
+
<p>This space was created using <a href="https://huggingface.co/spaces/anzorq/sd-space-creator">SD Space Creator</a>.</p>
|
149 |
+
</div>
|
150 |
+
""")
|
151 |
+
|
152 |
demo.queue(concurrency_count=1)
|
153 |
demo.launch()
|