Update app.py
Browse files
app.py
CHANGED
@@ -171,7 +171,8 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
171 |
clr_button.click(lambda: (None, None), None, [input_img, output_text], queue=False, show_api=False)
|
172 |
|
173 |
submit_btn.click(feifeichat, [input_img], [output_text])
|
174 |
-
|
|
|
175 |
with gr.TabItem("✍️ Text to Image 🖼", visible=True):
|
176 |
# Container for all the UI elements
|
177 |
with gr.Column(elem_id="app-container"):
|
@@ -219,6 +220,7 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
219 |
|
220 |
text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
|
221 |
|
|
|
222 |
with gr.TabItem("🔄 Flip Image", visible=True):
|
223 |
with gr.Column():
|
224 |
with gr.Row():
|
|
|
171 |
clr_button.click(lambda: (None, None), None, [input_img, output_text], queue=False, show_api=False)
|
172 |
|
173 |
submit_btn.click(feifeichat, [input_img], [output_text])
|
174 |
+
|
175 |
+
#Create image from prompt
|
176 |
with gr.TabItem("✍️ Text to Image 🖼", visible=True):
|
177 |
# Container for all the UI elements
|
178 |
with gr.Column(elem_id="app-container"):
|
|
|
220 |
|
221 |
text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
|
222 |
|
223 |
+
#Flip image code
|
224 |
with gr.TabItem("🔄 Flip Image", visible=True):
|
225 |
with gr.Column():
|
226 |
with gr.Row():
|