Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,11 +20,11 @@ def segMindImage(prompt, negative_prompt):
|
|
| 20 |
|
| 21 |
return image
|
| 22 |
|
| 23 |
-
|
| 24 |
inputs = [gr.Text(label="Prompt",placeholder="Write Prompt"),gr.Text(label="Negative Prompt",placeholder="Write Negative Prompt")],
|
| 25 |
outputs = gr.Image(label="Image"),
|
| 26 |
css =".gradio-container {background-image: linear-gradient(#7F7FD5, #91EAE4, #A3C9E2)}",
|
| 27 |
theme = gr.themes.Soft(),
|
| 28 |
title = "SD Image Diffusion")
|
| 29 |
|
| 30 |
-
|
|
|
|
| 20 |
|
| 21 |
return image
|
| 22 |
|
| 23 |
+
app = gr.Interface(segMindImage,
|
| 24 |
inputs = [gr.Text(label="Prompt",placeholder="Write Prompt"),gr.Text(label="Negative Prompt",placeholder="Write Negative Prompt")],
|
| 25 |
outputs = gr.Image(label="Image"),
|
| 26 |
css =".gradio-container {background-image: linear-gradient(#7F7FD5, #91EAE4, #A3C9E2)}",
|
| 27 |
theme = gr.themes.Soft(),
|
| 28 |
title = "SD Image Diffusion")
|
| 29 |
|
| 30 |
+
app.launch()
|