Karumoon commited on
Commit
1ce11e8
1 Parent(s): b730de8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,7 +1,14 @@
1
  import gradio as gr
 
 
 
 
 
 
2
 
3
  def greet(name):
4
- return "Hello " + name + "!!"
 
5
 
6
 
7
  iface = gr.Interface(fn=greet, inputs="text", outputs="image")
 
1
  import gradio as gr
2
+ from diffusers import DiffusionPipeline
3
+
4
+ pipeline = DiffusionPipeline.from_pretrained("anton-l/ddpm-ema-flowers-64")
5
+
6
+ generator.to("cuda")
7
+
8
 
9
  def greet(name):
10
+ image = generator().images[0]
11
+ return image
12
 
13
 
14
  iface = gr.Interface(fn=greet, inputs="text", outputs="image")