pikto commited on
Commit
0c4f2c7
·
1 Parent(s): 34292dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -13,13 +13,14 @@ def flip_image(x):
13
  with gr.Blocks() as pan:
14
  gr.Markdown("Flip text or image files using this demo.")
15
 
 
 
16
  with gr.Tab("Flip Text"):
17
- model = ("stabilityai/stable-diffusion-2-1")
18
- gr.Dropdown(choices=["First Choice", "Second Choice", "Third Choice"])
19
- prompt = gr.Textbox() ## Flip Text
20
  Your_input = gr.TextArea()
21
- image_input = gr.Image()
22
- run = gr.Button("Generate Images")
23
 
24
  with gr.Tab("Flip Image"):
25
  with gr.Row():
 
13
  with gr.Blocks() as pan:
14
  gr.Markdown("Flip text or image files using this demo.")
15
 
16
+ run = gr.Button("Generate Images")
17
+
18
  with gr.Tab("Flip Text"):
19
+ gr.Interface.load("stabilityai/stable-diffusion-2-1")
20
+ ##model = ("stabilityai/stable-diffusion-2-1")
21
+ # gr.Dropdown(choices=["First Choice", "Second Choice", "Third Choice"])
22
  Your_input = gr.TextArea()
23
+ output = gr.Image(label="")
 
24
 
25
  with gr.Tab("Flip Image"):
26
  with gr.Row():