Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
from diffusers import DiffusionPipeline
|
3 |
|
4 |
+
pipeline = DiffusionPipeline.from_pretrained("jax-diffusers-event/canny-coyo1m")
|
5 |
+
|
6 |
+
def infer(prompt):
|
7 |
+
image = pipeline("prompt").images[0]
|
8 |
+
return image
|
9 |
+
|
10 |
+
|
11 |
+
gr.Interface(pipeline, inputs="text", outputs="image").launch()
|