prithivMLmods commited on
Commit
5ba9463
·
verified ·
1 Parent(s): 865ef8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -95,8 +95,8 @@ def set_wallpaper_size(size):
95
  return 1920, 1080
96
  elif size == "Extented (1920x512)":
97
  return 1920, 512
98
- elif size == "Shrinked (512x1920)":
99
- return 512, 1920
100
  else:
101
  return 1024, 1024 # Default return if none of the conditions are met
102
 
@@ -165,7 +165,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(primary_hue=gr.themes.colors.orange
165
 
166
  with gr.Row(visible=True):
167
  wallpaper_size = gr.Radio(
168
- choices=["Mobile (1080x1920)", "Desktop (1920x1080)", "Extented (1920x512)", "Shrinked (512x1920)", "Default (1024x1024)"],
169
  label="Pixel Size(x*y)",
170
  value="Default (1024x1024)"
171
  )
 
95
  return 1920, 1080
96
  elif size == "Extented (1920x512)":
97
  return 1920, 512
98
+ elif size == "Headers (1080x512)":
99
+ return 1080, 512
100
  else:
101
  return 1024, 1024 # Default return if none of the conditions are met
102
 
 
165
 
166
  with gr.Row(visible=True):
167
  wallpaper_size = gr.Radio(
168
+ choices=["Mobile (1080x1920)", "Desktop (1920x1080)", "Extented (1920x512)", "Headers (1080x512)", "Default (1024x1024)"],
169
  label="Pixel Size(x*y)",
170
  value="Default (1024x1024)"
171
  )