Spaces:
Paused
Paused
Upload 14 files
Browse files- data/user_config.json +3 -3
- webui.py +8 -2
data/user_config.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"server_address": "https://hm96ofqkg8-8188.cnb.run",
|
| 3 |
-
"model": "
|
| 4 |
"sampler": "euler",
|
| 5 |
-
"scheduler": "
|
| 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": "
|
| 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 |
-
|
| 1210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|