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

Update app.py

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