bigghuggs commited on
Commit
1313bf0
1 Parent(s): 89b61d5

incorporate genimage

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import gradio as gr
 
2
 
3
  def greet(name):
 
4
  return "Hello " + name + "!!"
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
1
  import gradio as gr
2
+ from genimage import public_pipe
3
 
4
  def greet(name):
5
+ pipe("A girl smiling on crowded street", num_inference_steps=2, guidance_scale=0).images[0].save("output.png")
6
  return "Hello " + name + "!!"
7
 
8
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")