incorporate genimage
Browse files
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")
|