Commit 6ea38ad
committed
fix: address review comments on Qwen3-TTS Gradio demo
- Fix SERVER_PID bug: background vllm-omni directly (not piped through
tee) so $! captures the actual server PID, preventing orphaned
processes on cleanup
- Fix PCM format: handle raw PCM responses (no WAV header) by decoding
as int16 samples at 24 kHz
- Auto-detect task type: query /v1/models at startup and infer the task
type from the model name, pre-selecting the correct radio button
Signed-off-by: lishunyang <lishunyang12@163.com>1 parent 05278a2 commit 6ea38ad
File tree
2 files changed
+40
-3
lines changed- examples/online_serving/qwen3_tts
2 files changed
+40
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
41 | 62 | | |
42 | 63 | | |
43 | 64 | | |
| |||
148 | 169 | | |
149 | 170 | | |
150 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
151 | 178 | | |
152 | 179 | | |
153 | 180 | | |
| |||
189 | 216 | | |
190 | 217 | | |
191 | 218 | | |
| 219 | + | |
192 | 220 | | |
193 | 221 | | |
194 | 222 | | |
| |||
199 | 227 | | |
200 | 228 | | |
201 | 229 | | |
202 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
203 | 234 | | |
204 | 235 | | |
205 | 236 | | |
| |||
213 | 244 | | |
214 | 245 | | |
215 | 246 | | |
216 | | - | |
| 247 | + | |
217 | 248 | | |
218 | 249 | | |
219 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
136 | | - | |
| 139 | + | |
137 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| |||
0 commit comments