DigiP-AI commited on
Commit
35e393e
Β·
verified Β·
1 Parent(s): 2f30690

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -159,8 +159,8 @@ footer{display:none !important}
159
  with gr.Blocks(theme=theme, css=css) as app:
160
  # Add a title to the app
161
  gr.HTML("<center><h1>🎨 Stable Diffusion 3.5 Large Turbo + πŸ‡¬πŸ‡§</h1></center>")
162
- with gr.Tabs() as tabs:
163
- with gr.TabItem(label="πŸ–Ό Image To Prompt πŸ“„", visible=True):
164
  with gr.Row():
165
  with gr.Column():
166
  input_img = gr.Image(label="Input Picture πŸ–ΌοΈ",height=320,type="filepath")
@@ -223,7 +223,7 @@ with gr.Blocks(theme=theme, css=css) as app:
223
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
224
 
225
  #Flip image code
226
- with gr.TabItem("πŸ”„ Flip Image", visible=True):
227
  with gr.Row():
228
  image_input = gr.Image(type="numpy", label="Upload Image",height=320)
229
  image_output = gr.Image(format="png")
@@ -235,7 +235,7 @@ with gr.Blocks(theme=theme, css=css) as app:
235
  clear_results.click(lambda: (None, None), None, [image_input, image_output])
236
 
237
 
238
- with gr.TabItem("ℹ️ Tips", visible=True):
239
  with gr.Column():
240
  with gr.Row():
241
  with gr.Column():
 
159
  with gr.Blocks(theme=theme, css=css) as app:
160
  # Add a title to the app
161
  gr.HTML("<center><h1>🎨 Stable Diffusion 3.5 Large Turbo + πŸ‡¬πŸ‡§</h1></center>")
162
+ # with gr.Tabs() as tabs:
163
+ with gr.Tab(label="πŸ–Ό Image To Prompt πŸ“„", visible=True):
164
  with gr.Row():
165
  with gr.Column():
166
  input_img = gr.Image(label="Input Picture πŸ–ΌοΈ",height=320,type="filepath")
 
223
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
224
 
225
  #Flip image code
226
+ with gr.Tab("πŸ”„ Flip Image", visible=True):
227
  with gr.Row():
228
  image_input = gr.Image(type="numpy", label="Upload Image",height=320)
229
  image_output = gr.Image(format="png")
 
235
  clear_results.click(lambda: (None, None), None, [image_input, image_output])
236
 
237
 
238
+ with gr.Tab("ℹ️ Tips", visible=True):
239
  with gr.Column():
240
  with gr.Row():
241
  with gr.Column():