Update app.py
Browse files
app.py
CHANGED
@@ -159,7 +159,7 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
159 |
# Add a title to the app
|
160 |
gr.HTML("<center><h1>π¨ Stable Diffusion 3.5 Large Turbo + π¬π§</h1></center>")
|
161 |
with gr.Tabs() as tabs:
|
162 |
-
with gr.TabItem(label="Image To Prompt", visible=True):
|
163 |
with gr.Row():
|
164 |
with gr.Column():
|
165 |
input_img = gr.Image(label="Input Picture πΌοΈ",height=320,type="filepath")
|
@@ -171,7 +171,7 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
171 |
|
172 |
submit_btn.click(feifeichat, [input_img], [output_text])
|
173 |
|
174 |
-
with gr.TabItem("Text to Image", visible=True):
|
175 |
# Container for all the UI elements
|
176 |
with gr.Column(elem_id="app-container"):
|
177 |
# Add a text input for the main prompt
|
|
|
159 |
# Add a title to the app
|
160 |
gr.HTML("<center><h1>π¨ Stable Diffusion 3.5 Large Turbo + π¬π§</h1></center>")
|
161 |
with gr.Tabs() as tabs:
|
162 |
+
with gr.TabItem(label="πΌ Image To Prompt π", visible=True):
|
163 |
with gr.Row():
|
164 |
with gr.Column():
|
165 |
input_img = gr.Image(label="Input Picture πΌοΈ",height=320,type="filepath")
|
|
|
171 |
|
172 |
submit_btn.click(feifeichat, [input_img], [output_text])
|
173 |
|
174 |
+
with gr.TabItem("βοΈ Text to Image πΌ", visible=True):
|
175 |
# Container for all the UI elements
|
176 |
with gr.Column(elem_id="app-container"):
|
177 |
# Add a text input for the main prompt
|