Update app.py
Browse files
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.
|
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.
|
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.
|
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():
|