refresh_model_cache 函数中引用了 model_cache 但未导入, 该导入仅在 _refresh_model_cache 内部作用域中,外部无法访问。 添加局部 import 解决此问题。 |
||
|---|---|---|
| .. | ||
| routers | ||
| utils | ||
| main.py | ||
| worker_main.py | ||
refresh_model_cache 函数中引用了 model_cache 但未导入, 该导入仅在 _refresh_model_cache 内部作用域中,外部无法访问。 添加局部 import 解决此问题。 |
||
|---|---|---|
| .. | ||
| routers | ||
| utils | ||
| main.py | ||
| worker_main.py | ||