Spaces:
Runtime error
Runtime error
Commit
·
65e2446
1
Parent(s):
a16f1fd
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
from diffusers import DiffusionPipeline
|
5 |
+
pipeline = DiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
|
6 |
+
|
7 |
+
iface = gr.Interface(
|
8 |
+
fn=predict,
|
9 |
+
inputs='text',
|
10 |
+
outputs='text',
|
11 |
+
examples=[["Hello! My name is Omar"]]
|
12 |
+
)
|
13 |
+
|
14 |
+
iface.launch()
|