claude-mat commited on
Commit
e9c2cf0
·
verified ·
1 Parent(s): b2d7c7c

Upload 14 files

Browse files
Files changed (2) hide show
  1. data/user_config.json +3 -3
  2. webui.py +8 -2
data/user_config.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "server_address": "https://hm96ofqkg8-8188.cnb.run",
3
- "model": "il/WAI_NSFW-illustrious-SDXL_v15.safetensors",
4
  "sampler": "euler",
5
- "scheduler": "simple",
6
  "steps": 30,
7
  "cfg": 6.0,
8
  "width": 768,
@@ -15,7 +15,7 @@
15
  "negative_prefix": "",
16
  "positive_prompt": "best quality,very aesthetic,highres,absurdres,sensitive,A girl dressed in a maid costume with a personality, kneeling in front of her master\uff0c",
17
  "negative_prompt": "lowres,(bad),bad feet,text,error,fewer,extra,missing,worst quality,jpeg artifacts,low quality,watermark,unfinished,displeasing,oldest,early,chromatic aberration,signature,artistic error,username,scan,[abstract],english text,shiny_skin,",
18
- "preset_name": "\u2728 \u63a8\u8350\u98ce\u683c",
19
  "current_workflow": "workflow_template",
20
  "language": "zh",
21
  "config_save_interval": 20,
 
1
  {
2
  "server_address": "https://hm96ofqkg8-8188.cnb.run",
3
+ "model": "model.safetensors",
4
  "sampler": "euler",
5
+ "scheduler": "normal",
6
  "steps": 30,
7
  "cfg": 6.0,
8
  "width": 768,
 
15
  "negative_prefix": "",
16
  "positive_prompt": "best quality,very aesthetic,highres,absurdres,sensitive,A girl dressed in a maid costume with a personality, kneeling in front of her master\uff0c",
17
  "negative_prompt": "lowres,(bad),bad feet,text,error,fewer,extra,missing,worst quality,jpeg artifacts,low quality,watermark,unfinished,displeasing,oldest,early,chromatic aberration,signature,artistic error,username,scan,[abstract],english text,shiny_skin,",
18
+ "preset_name": "None",
19
  "current_workflow": "workflow_template",
20
  "language": "zh",
21
  "config_save_interval": 20,
webui.py CHANGED
@@ -1206,8 +1206,14 @@ def create_ui():
1206
  ])
1207
 
1208
  # Poll for history and scheduler status updates every 5 seconds
1209
- timer = gr.Timer(5)
1210
- timer.tick(fn=poll_updates, outputs=[history_gallery, scheduler_status, scheduler_output])
 
 
 
 
 
 
1211
 
1212
  return app
1213
 
 
1206
  ])
1207
 
1208
  # Poll for history and scheduler status updates every 5 seconds
1209
+ # Use a backward-compatible method for creating a timer
1210
+ if hasattr(gr, 'Timer'):
1211
+ # New way for Gradio 4.x and later
1212
+ timer = gr.Timer(5)
1213
+ timer.tick(fn=poll_updates, outputs=[history_gallery, scheduler_status, scheduler_output])
1214
+ else:
1215
+ # Old way for Gradio 3.x
1216
+ app.load(fn=poll_updates, outputs=[history_gallery, scheduler_status, scheduler_output], every=5)
1217
 
1218
  return app
1219