AndrewKapok commited on
Commit
1a6a882
·
verified ·
1 Parent(s): fe345ca

Upload config.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.yaml +52 -0
config.yaml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ name: qwen/qwen-image-2512
3
+ revision: main
4
+ dir: ./models
5
+ cache_dir: ~/.cache/huggingface/hub
6
+ verify_integrity: true
7
+
8
+ inference:
9
+ device: cpu
10
+ dtype: float32
11
+ max_memory:
12
+ cpu: 16GB
13
+ num_threads: 4
14
+ num_interop_threads: 2
15
+ enable_attention_slicing: true
16
+ enable_sequential_cpu_offload: true
17
+ low_cpu_mem_usage: true
18
+
19
+ api:
20
+ host: 0.0.0.0
21
+ port: 7860
22
+ workers: 1
23
+ docs_url: /docs
24
+ redoc_url: /redoc
25
+ request_limit: 100
26
+ request_window: 60
27
+ cors_origins: ["*"]
28
+
29
+ ui:
30
+ title: Qwen-Image-2512 文本到图像生成
31
+ theme: soft
32
+ max_images: 4
33
+ css: |
34
+ .main-container { max-width: 1200px; margin: 0 auto; }
35
+ .title { text-align: center; margin-bottom: 2rem; }
36
+ .upload-section { margin-bottom: 2rem; }
37
+ .params-section { margin-bottom: 2rem; }
38
+ .status-section { margin-bottom: 2rem; }
39
+ .result-section { margin-bottom: 2rem; }
40
+ .param-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
41
+ .param-item { flex: 1 1 200px; }
42
+
43
+ logging:
44
+ level: info
45
+ format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
46
+ file: app.log
47
+ rotation: 10MB
48
+ retention: 7 days
49
+
50
+ health_check:
51
+ enabled: true
52
+ interval: 60