Spaces:
Sleeping
Sleeping
Commit
·
17da7df
1
Parent(s):
e605a15
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
gr.Interface(txt2img, gr.Text(), gr.Image(), title = 'Gradio UI for selfart').launch(share = True, debug = True)
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
prompt = "prompt text"
|
4 |
+
|
5 |
+
def txt2img(prompt):
|
6 |
+
|
7 |
+
image = pipe(prompt, height=768, width=768, guidance_scale = 10).images[0]
|
8 |
+
|
9 |
+
image.save("sd_image.png")
|
10 |
+
|
11 |
+
return image
|
12 |
+
|
13 |
gr.Interface(txt2img, gr.Text(), gr.Image(), title = 'Gradio UI for selfart').launch(share = True, debug = True)
|