AlekseyCalvin commited on
Commit
9280dee
·
verified ·
1 Parent(s): aa469f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -13,8 +13,8 @@ DTYPE = torch.float32
13
  MODEL_NAME = "IDKiro/sdxs-512-0.9"
14
 
15
  # Generation Settings
16
- UPDATE_INTERVAL = 13 # Seconds between background generations
17
- UI_CHECK_INTERVAL = 2 # Seconds between UI checks
18
  MAX_HISTORY = 100 # Max images to keep in the archive
19
 
20
  # --- Prompts ---
@@ -148,8 +148,8 @@ def generate_one_image():
148
  prompt=prompt,
149
  num_inference_steps=1,
150
  guidance_scale=0.0,
151
- width=576,
152
- height=576,
153
  generator=generator, # Pass random generator
154
  output_type="pil"
155
  )
@@ -250,8 +250,8 @@ with gr.Blocks(title="AI Screensaver") as demo:
250
  # 3. Main Image Component (512x512)
251
  image_display = gr.Image(
252
  label="Live Feed",
253
- height=512,
254
- width=512,
255
  show_label=False,
256
  elem_id="screensaver-img",
257
  sources=[]
 
13
  MODEL_NAME = "IDKiro/sdxs-512-0.9"
14
 
15
  # Generation Settings
16
+ UPDATE_INTERVAL = 1 # Seconds between background generations
17
+ UI_CHECK_INTERVAL = 1 # Seconds between UI checks
18
  MAX_HISTORY = 100 # Max images to keep in the archive
19
 
20
  # --- Prompts ---
 
148
  prompt=prompt,
149
  num_inference_steps=1,
150
  guidance_scale=0.0,
151
+ width=384,
152
+ height=384,
153
  generator=generator, # Pass random generator
154
  output_type="pil"
155
  )
 
250
  # 3. Main Image Component (512x512)
251
  image_display = gr.Image(
252
  label="Live Feed",
253
+ height=384,
254
+ width=384,
255
  show_label=False,
256
  elem_id="screensaver-img",
257
  sources=[]