JustinD commited on
Commit
b1fdbd1
·
verified ·
1 Parent(s): 97ca645

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -203,7 +203,7 @@ def async_traffic_log_upload_worker(pil_img, seed, model_name, prompt, username,
203
 
204
  api = HfApi(token=hf_token)
205
  date_str = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(timestamp))
206
- log_entry = f"[{date_str}] | User: {username} | Model: {model_name} | Seed: {seed} | Prompt: {prompt[:1500]}...\n"
207
  user_log_filename = f"user_logs/{username}_history.txt"
208
 
209
  max_attempts = 4
@@ -513,14 +513,14 @@ def create_interface():
513
  style_input = gr.Radio(label="Style Presets", choices=list(STYLE_KEYWORDS.keys()), value="None")
514
  seed_input = gr.Number(label="Seed", value=-1, precision=0)
515
 
516
- width_input = gr.Slider(label="Width", minimum=1919, maximum=1921, value=1920, step=128)
517
- height_input = gr.Slider(label="Height", minimum=1439, maximum=1441, value=1440, step=128)
518
 
519
- steps_input = gr.Slider(label="Inference Steps", minimum=10, maximum=30, value=30, step=2)
520
  cfg_input = gr.Slider(label="CFG Engine", minimum=1.0, maximum=10.0, value=10, step=1.1)
521
 
522
  # Public Anti-Spam Clamp: Capped strictly at a maximum of 2 images per click
523
- num_images_input = gr.Slider(label="Batch Count (Capped at 2)", minimum=1, maximum=2, value=1, step=1)
524
 
525
  with gr.Row():
526
  image_output = gr.Gallery(label="Outputs", columns=2, height="auto")
 
203
 
204
  api = HfApi(token=hf_token)
205
  date_str = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(timestamp))
206
+ log_entry = f"[{date_str}] | User: {username} | Model: {model_name} | Seed: {seed} | Prompt: {prompt[:150]}...\n"
207
  user_log_filename = f"user_logs/{username}_history.txt"
208
 
209
  max_attempts = 4
 
513
  style_input = gr.Radio(label="Style Presets", choices=list(STYLE_KEYWORDS.keys()), value="None")
514
  seed_input = gr.Number(label="Seed", value=-1, precision=0)
515
 
516
+ width_input = gr.Slider(label="Width", minimum=3840, maximum=3840, value=3840, step=128)
517
+ height_input = gr.Slider(label="Height", minimum=2160, maximum=2160, value=2160, step=128)
518
 
519
+ steps_input = gr.Slider(label="Inference Steps", minimum=10, maximum=60, value=30, step=2)
520
  cfg_input = gr.Slider(label="CFG Engine", minimum=1.0, maximum=10.0, value=10, step=1.1)
521
 
522
  # Public Anti-Spam Clamp: Capped strictly at a maximum of 2 images per click
523
+ num_images_input = gr.Slider(label="Batch Count (Capped at 20)", minimum=1, maximum=20, value=1, step=1)
524
 
525
  with gr.Row():
526
  image_output = gr.Gallery(label="Outputs", columns=2, height="auto")