prithivMLmods commited on
Commit
d2a6d7f
·
verified ·
1 Parent(s): a2db6e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -87,9 +87,6 @@ class OrangeRedTheme(Soft):
87
 
88
  orange_red_theme = OrangeRedTheme()
89
 
90
- # Description for the app
91
- DESCRIPTION = """## Qwen Image Diffusion"""
92
-
93
  # Helper functions
94
  def save_image(img):
95
  unique_name = str(uuid.uuid4()) + ".png"
@@ -275,6 +272,7 @@ css = '''
275
  max-width: 590px !important;
276
  margin: 0 auto !important;
277
  }
 
278
  h1 {
279
  text-align: center;
280
  }
@@ -285,15 +283,14 @@ footer {
285
 
286
  # Gradio interface
287
  with gr.Blocks(delete_cache=(240, 240)) as demo:
288
- gr.Markdown(DESCRIPTION)
289
  result = gr.Gallery(label="Result", columns=1, show_label=False, preview=True)
290
  with gr.Row():
291
  prompt = gr.Text(
292
  label="Prompt",
293
- show_label=False,
294
- max_lines=1,
295
  placeholder="Enter your prompt..",
296
- container=False,
297
  )
298
  run_button = gr.Button("Run", scale=0, variant="primary")
299
 
 
87
 
88
  orange_red_theme = OrangeRedTheme()
89
 
 
 
 
90
  # Helper functions
91
  def save_image(img):
92
  unique_name = str(uuid.uuid4()) + ".png"
 
272
  max-width: 590px !important;
273
  margin: 0 auto !important;
274
  }
275
+ #main-title h1 { font-size: 2.3em !important; }
276
  h1 {
277
  text-align: center;
278
  }
 
283
 
284
  # Gradio interface
285
  with gr.Blocks(delete_cache=(240, 240)) as demo:
286
+ gr.Markdown("# **Qwen-Image-Diffusion**", elem_id="main-title")
287
  result = gr.Gallery(label="Result", columns=1, show_label=False, preview=True)
288
  with gr.Row():
289
  prompt = gr.Text(
290
  label="Prompt",
291
+ show_label=True,
292
+ max_lines=2,
293
  placeholder="Enter your prompt..",
 
294
  )
295
  run_button = gr.Button("Run", scale=0, variant="primary")
296