DigiP-AI commited on
Commit
60ad950
Β·
verified Β·
1 Parent(s): 1093d52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -146,6 +146,7 @@ def feifeichat(image):
146
 
147
  # CSS to style the app
148
  css = """
 
149
  footer{display:none !important}
150
  #app-container {
151
  max-width: 930px;
@@ -158,6 +159,7 @@ footer{display:none !important}
158
  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():
@@ -205,10 +207,12 @@ with gr.Blocks(theme=theme, css=css) as app:
205
  with gr.Row():
206
  image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
207
 
 
208
  with gr.Row():
209
  clear_results = gr.Button(value="Clear Image πŸ—‘οΈ", variant="primary", elem_id="clear_button")
210
  clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
211
 
 
212
  gr.Examples(
213
  examples = examples,
214
  inputs = [text_prompt],
 
146
 
147
  # CSS to style the app
148
  css = """
149
+ .gradio-container {background-color: MediumAquaMarine}
150
  footer{display:none !important}
151
  #app-container {
152
  max-width: 930px;
 
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
+ #Set tabs
163
  with gr.Tabs() as tabs:
164
  with gr.TabItem(label="πŸ–Ό Image To Prompt πŸ“„", visible=True):
165
  with gr.Row():
 
207
  with gr.Row():
208
  image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
209
 
210
+ #Clear input and output
211
  with gr.Row():
212
  clear_results = gr.Button(value="Clear Image πŸ—‘οΈ", variant="primary", elem_id="clear_button")
213
  clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
214
 
215
+ with gr.Row():
216
  gr.Examples(
217
  examples = examples,
218
  inputs = [text_prompt],