Spaces:
Runtime error
Runtime error
Eduardo Matallanas
commited on
Commit
·
4b87396
1
Parent(s):
df1443b
Fix all bugs
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def generate_images(prompt, negative_prompt, num_imgs_to_gen, num_steps, guidanc
|
|
25 |
Returns:
|
26 |
generated_img (List): List of images that were generated using the model
|
27 |
"""
|
28 |
-
generated_images =
|
29 |
prompt,
|
30 |
negative_prompt=negative_prompt,
|
31 |
batch_size=num_imgs_to_gen,
|
@@ -39,9 +39,9 @@ with gr.Blocks() as demo:
|
|
39 |
with gr.Row():
|
40 |
with gr.Column():
|
41 |
prompt = gr.Textbox(lines=1, value="ignatius in a standup comedy spectacle", label="Base Prompt")
|
42 |
-
negative_prompt = gr.Textbox(lines=1, value="
|
43 |
samples = gr.Slider(minimum=1, maximum=10, default=1, step=1, label="Number of Image")
|
44 |
-
num_steps = gr.Slider(label="Inference Steps",value=50)
|
45 |
guidance_scale = gr.Number(label="Guidance scale", value=7.5)
|
46 |
run = gr.Button(value="Run")
|
47 |
with gr.Column():
|
|
|
25 |
Returns:
|
26 |
generated_img (List): List of images that were generated using the model
|
27 |
"""
|
28 |
+
generated_images = dreambooth_model.text_to_image(
|
29 |
prompt,
|
30 |
negative_prompt=negative_prompt,
|
31 |
batch_size=num_imgs_to_gen,
|
|
|
39 |
with gr.Row():
|
40 |
with gr.Column():
|
41 |
prompt = gr.Textbox(lines=1, value="ignatius in a standup comedy spectacle", label="Base Prompt")
|
42 |
+
negative_prompt = gr.Textbox(lines=1, value="bad anatomy, blurry, ugly, deformed", label="Negative Prompt")
|
43 |
samples = gr.Slider(minimum=1, maximum=10, default=1, step=1, label="Number of Image")
|
44 |
+
num_steps = gr.Slider(label="Inference Steps", value=50)
|
45 |
guidance_scale = gr.Number(label="Guidance scale", value=7.5)
|
46 |
run = gr.Button(value="Run")
|
47 |
with gr.Column():
|