merve HF staff commited on
Commit
a80935d
1 Parent(s): 9a62462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1,3 +1,11 @@
1
  import gradio as gr
 
2
 
3
- gr.Interface.load("models/jax-diffusers-event/canny-coyo1m", examples= [["car, a detailed high-quality professional image"]]).launch()
 
 
 
 
 
 
 
 
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()