Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def run_lora(prompt, progress=gr.Progress(track_tqdm=True)):
|
|
27 |
trigger_word = default_lora["trigger_word"]
|
28 |
payload = {
|
29 |
"inputs": f"{prompt} {trigger_word}",
|
30 |
-
"parameters":{"negative_prompt": "bad art, ugly, watermark, deformed", "num_inference_steps":
|
31 |
}
|
32 |
|
33 |
# Add a print statement to display the API request
|
@@ -75,5 +75,5 @@ with gr.Blocks(css="custom.css") as app:
|
|
75 |
outputs=[result]
|
76 |
)
|
77 |
|
78 |
-
|
79 |
app.launch()
|
|
|
27 |
trigger_word = default_lora["trigger_word"]
|
28 |
payload = {
|
29 |
"inputs": f"{prompt} {trigger_word}",
|
30 |
+
"parameters":{"negative_prompt": "bad art, ugly, watermark, deformed", "num_inference_steps": 60, "scheduler":"DPMSolverMultistepScheduler"},
|
31 |
}
|
32 |
|
33 |
# Add a print statement to display the API request
|
|
|
75 |
outputs=[result]
|
76 |
)
|
77 |
|
78 |
+
app.queue(max_size=20, concurrency_count=5)
|
79 |
app.launch()
|