Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ batch_size, num_images, height, width = 1, 1, 1024, 512
|
|
21 |
pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
|
22 |
#pipeline.load_textual_inversion("./badhandv4.pt", "badhandv4")
|
23 |
#hiten1
|
24 |
-
pipeline.load_textual_inversion("./hiten1.pt", "hiten1")
|
25 |
pipeline.compile()
|
26 |
|
27 |
#TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
|
@@ -31,7 +31,7 @@ def infer(prompt, num_inference_steps):
|
|
31 |
|
32 |
image = pipeline(
|
33 |
prompt = prompt,
|
34 |
-
|
35 |
guidance_scale = 7.0,
|
36 |
num_inference_steps = num_inference_steps,
|
37 |
width = width,
|
@@ -59,7 +59,7 @@ with gr.Blocks(css=css) as demo:
|
|
59 |
|
60 |
with gr.Column(elem_id="col-container"):
|
61 |
gr.Markdown(f"""
|
62 |
-
# Demo :
|
63 |
""")
|
64 |
|
65 |
with gr.Row():
|
|
|
21 |
pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
|
22 |
#pipeline.load_textual_inversion("./badhandv4.pt", "badhandv4")
|
23 |
#hiten1
|
24 |
+
#pipeline.load_textual_inversion("./hiten1.pt", "hiten1")
|
25 |
pipeline.compile()
|
26 |
|
27 |
#TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
|
|
|
31 |
|
32 |
image = pipeline(
|
33 |
prompt = prompt,
|
34 |
+
negative_prompt = negative_prompt,
|
35 |
guidance_scale = 7.0,
|
36 |
num_inference_steps = num_inference_steps,
|
37 |
width = width,
|
|
|
59 |
|
60 |
with gr.Column(elem_id="col-container"):
|
61 |
gr.Markdown(f"""
|
62 |
+
# Demo :stabilityai/stable-diffusion-xl-base-1.0
|
63 |
""")
|
64 |
|
65 |
with gr.Row():
|