Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def read_content(file_path: str) -> str:
|
|
| 105 |
|
| 106 |
return content
|
| 107 |
|
| 108 |
-
def predict(dict, prompt="", negative_prompt = default_negative_prompt, guidance_scale=1.2, steps=12,
|
| 109 |
if negative_prompt == "":
|
| 110 |
negative_prompt = None
|
| 111 |
|
|
@@ -231,7 +231,7 @@ with image_blocks as demo:
|
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
-
btn.click(fn=predict, inputs=[image, prompt, negative_prompt, guidance_scale, steps,
|
| 235 |
prompt.submit(fn=predict, inputs=[image, prompt, negative_prompt, guidance_scale, steps, strength], outputs=[image_out])
|
| 236 |
|
| 237 |
gr.HTML(
|
|
|
|
| 105 |
|
| 106 |
return content
|
| 107 |
|
| 108 |
+
def predict(dict, prompt="", negative_prompt = default_negative_prompt, guidance_scale=1.2, steps=12, seed=123456):
|
| 109 |
if negative_prompt == "":
|
| 110 |
negative_prompt = None
|
| 111 |
|
|
|
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
+
btn.click(fn=predict, inputs=[image, prompt, negative_prompt, guidance_scale, steps, seed], outputs=[image_out], api_name='run')
|
| 235 |
prompt.submit(fn=predict, inputs=[image, prompt, negative_prompt, guidance_scale, steps, strength], outputs=[image_out])
|
| 236 |
|
| 237 |
gr.HTML(
|