DigiP-AI commited on
Commit
0aa83b2
·
verified ·
1 Parent(s): 84d4d02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -172,7 +172,7 @@ with gr.Blocks(theme=theme, css=css) as app:
172
 
173
  submit_btn.click(feifeichat, [input_img], [output_text])
174
 
175
- with gr.TabItem("Text to Image", visible=True, id=0):
176
  # Container for all the UI elements
177
  with gr.Column(elem_id="app-container"):
178
  # Add a text input for the main prompt
@@ -220,7 +220,7 @@ with gr.Blocks(theme=theme, css=css) as app:
220
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
221
 
222
 
223
- with gr.TabItem("🔄 Flip Image", visible=True, id=2):
224
  with gr.Row():
225
  image_input = gr.Image(label="Upload Image", height=320, type="filepath")
226
  image_output = gr.Image(format="png")
@@ -231,7 +231,7 @@ with gr.Blocks(theme=theme, css=css) as app:
231
  clear_results = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
232
  clear_results.click(lambda: (None, None), None, [image_input, image_output])
233
 
234
- with gr.TabItem("ℹ️ Tips", visible=True, id=3):
235
  with gr.Row():
236
  with gr.Column():
237
  gr.Markdown(
 
172
 
173
  submit_btn.click(feifeichat, [input_img], [output_text])
174
 
175
+ with gr.TabItem("Text to Image", visible=True, id=2):
176
  # Container for all the UI elements
177
  with gr.Column(elem_id="app-container"):
178
  # Add a text input for the main prompt
 
220
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
221
 
222
 
223
+ with gr.TabItem("🔄 Flip Image", visible=True, id=3):
224
  with gr.Row():
225
  image_input = gr.Image(label="Upload Image", height=320, type="filepath")
226
  image_output = gr.Image(format="png")
 
231
  clear_results = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
232
  clear_results.click(lambda: (None, None), None, [image_input, image_output])
233
 
234
+ with gr.TabItem("ℹ️ Tips", visible=True, id=4):
235
  with gr.Row():
236
  with gr.Column():
237
  gr.Markdown(