You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
preload_model = "fun-asr-nano" if device.startswith("cuda") else "sensevoice"
22706
22706
@@ -22709,6 +22709,8 @@ <h4>Args:</h4>
22709
22709
app.state.engine = None
22710
22710
app.state.vad_model = None
22711
22711
app.state.fallback_models = {}
22712
+
app.state.model_path = model_path
22713
+
app.state.hub = hub
22712
22714
22713
22715
# Non-LLM model configs (use AutoModel, no vLLM)
22714
22716
FALLBACK_CONFIGS = {
@@ -22728,8 +22730,6 @@ <h4>Args:</h4>
22728
22730
"""Load Fun-ASR-Nano vLLM engine. Falls back to AutoModel if vLLM unavailable."""
22729
22731
if app.state.engine is not None:
22730
22732
return
22731
-
try:
22732
-
from funasr.models.fun_asr_nano.inference_vllm import FunASRNanoVLLM
22733
22733
</code></pre><a href="https://github.com/modelscope/FunASR/blob/main/funasr/bin/_server_app.py#L104" target="_blank" class="src-more">View full source on GitHub →</a></details></div>
</code></pre><a href="https://github.com/modelscope/FunASR/blob/main/funasr/bin/server.py#L14" target="_blank" class="src-more">View full source on GitHub →</a></details></div>
23533
+
</code></pre><a href="https://github.com/modelscope/FunASR/blob/main/funasr/bin/server.py#L16" target="_blank" class="src-more">View full source on GitHub →</a></details></div>
23534
23534
<div class="api-detail" id="e478"><span class="dtag badge-f">function</span><h2><code>field2slice(field)</code></h2><div class="dmod">funasr.bin.tokenize_text · <a href="https://github.com/modelscope/FunASR/blob/main/funasr/bin/tokenize_text.py#L23" target="_blank">View on GitHub ↗</a></div><div class="ddoc"><p>Convert field string to slice</p>
23535
23535
<p>Note that field string accepts 1-based integer.</p>
0 commit comments