Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ def read_content(file_path: str) -> str:
|
|
106 |
return content
|
107 |
|
108 |
@spaces.GPU(enable_queue=True)
|
109 |
-
def predict(dict, prompt="", negative_prompt = default_negative_prompt, guidance_scale=1.2, steps=12, seed
|
110 |
if negative_prompt == "":
|
111 |
negative_prompt = None
|
112 |
|
@@ -224,7 +224,7 @@ with image_blocks as demo:
|
|
224 |
guidance_scale = gr.Number(value=1.2, minimum=0.8, maximum=2.5, step=0.1, label="guidance_scale")
|
225 |
steps = gr.Number(value=12, minimum=6, maximum=20, step=1, label="steps")
|
226 |
# strength = gr.Number(value=1, minimum=0.01, maximum=1.0, step=0.01, label="strength")
|
227 |
-
seed = gr.Number(value
|
228 |
negative_prompt = gr.Textbox(label="negative_prompt", value=default_negative_prompt, placeholder=default_negative_prompt, info="what you don't want to see in the image")
|
229 |
|
230 |
|
|
|
106 |
return content
|
107 |
|
108 |
@spaces.GPU(enable_queue=True)
|
109 |
+
def predict(dict, prompt="", negative_prompt = default_negative_prompt, guidance_scale=1.2, steps=12, seed=123456):
|
110 |
if negative_prompt == "":
|
111 |
negative_prompt = None
|
112 |
|
|
|
224 |
guidance_scale = gr.Number(value=1.2, minimum=0.8, maximum=2.5, step=0.1, label="guidance_scale")
|
225 |
steps = gr.Number(value=12, minimum=6, maximum=20, step=1, label="steps")
|
226 |
# strength = gr.Number(value=1, minimum=0.01, maximum=1.0, step=0.01, label="strength")
|
227 |
+
seed = gr.Number(value=123456, minimum=0, maximum=999999, step=1, label="seed")
|
228 |
negative_prompt = gr.Textbox(label="negative_prompt", value=default_negative_prompt, placeholder=default_negative_prompt, info="what you don't want to see in the image")
|
229 |
|
230 |
|