Sushil Thapa commited on
Commit
26f2a64
1 Parent(s): f76c5d0

Add stable diffusion demo

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -1,8 +1,14 @@
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")
 
 
 
7
 
8
- iface.launch()
 
 
 
1
  import gradio as gr
2
 
3
+ description = "Story generation with GPT-2"
4
+ title = "Generate your own story"
5
+ examples = [[]]
6
 
7
+ interface = gr.Interface.load("runwayml/stable-diffusion-inpainting",
8
+ description=description,
9
+ examples=examples
10
+ )
11
 
12
+
13
+
14
+ interface.launch()