Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
4 |
-
|
|
|
5 |
|
6 |
-
iface = gr.Interface(fn=
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from diffusers import DiffusionPipeline
|
3 |
|
4 |
+
pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
|
5 |
+
def generate(prompt):
|
6 |
+
return pipeline(prompt)
|
7 |
|
8 |
+
iface = gr.Interface(fn=generate, inputs="text", outputs="image")
|
9 |
iface.launch()
|