Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def read_content(file_path: str) -> str:
|
|
| 25 |
|
| 26 |
def predict(dict, prompt="high quality, best quality", negative_prompt="", guidance_scale=5, steps=30, ip_adapter_scale = 1.0, width=1024, height=1024, seed=0):
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
if negative_prompt == "":
|
| 31 |
negative_prompt = None
|
|
|
|
| 25 |
|
| 26 |
def predict(dict, prompt="high quality, best quality", negative_prompt="", guidance_scale=5, steps=30, ip_adapter_scale = 1.0, width=1024, height=1024, seed=0):
|
| 27 |
|
| 28 |
+
pipe.set_ip_adapter_scale(ip_adapter_scale)
|
| 29 |
|
| 30 |
if negative_prompt == "":
|
| 31 |
negative_prompt = None
|