Spaces:
Sleeping
Sleeping
Update app.py
Browse filesисправление ошибок
app.py
CHANGED
@@ -81,8 +81,8 @@ def infer(
|
|
81 |
prompt,
|
82 |
negative_prompt,
|
83 |
randomize_seed,
|
84 |
-
width,
|
85 |
-
height,
|
86 |
model_repo_id=model_id_default,
|
87 |
seed=42,
|
88 |
guidance_scale=7,
|
@@ -142,9 +142,9 @@ def infer(
|
|
142 |
'generator': generator,
|
143 |
}
|
144 |
|
145 |
-
return pipe(**params).images[0]
|
146 |
|
147 |
-
return image, seed
|
148 |
|
149 |
|
150 |
examples = [
|
@@ -250,6 +250,7 @@ with gr.Blocks(css=css) as demo:
|
|
250 |
value=20, # Replace with defaults that work for your model
|
251 |
)
|
252 |
|
|
|
253 |
model_lora_id = gr.Dropdown(
|
254 |
label="Lora Id",
|
255 |
choices=model_dropdown,
|
|
|
81 |
prompt,
|
82 |
negative_prompt,
|
83 |
randomize_seed,
|
84 |
+
width=512,
|
85 |
+
height=512,
|
86 |
model_repo_id=model_id_default,
|
87 |
seed=42,
|
88 |
guidance_scale=7,
|
|
|
142 |
'generator': generator,
|
143 |
}
|
144 |
|
145 |
+
return pipe(**params).images[0], seed
|
146 |
|
147 |
+
# return image, seed
|
148 |
|
149 |
|
150 |
examples = [
|
|
|
250 |
value=20, # Replace with defaults that work for your model
|
251 |
)
|
252 |
|
253 |
+
with gr.Row():
|
254 |
model_lora_id = gr.Dropdown(
|
255 |
label="Lora Id",
|
256 |
choices=model_dropdown,
|