PeterH0323 / Streamer-Sales

Streamer-Sales 销冠 —— 卖货主播 LLM 大模型🛒🎁,一个能够根据给定的商品特点从激发用户购买意愿角度出发进行商品解说的卖货主播大模型。🚀⭐内含详细的数据生成流程❗ 📦另外还集成了 LMDeploy 加速推理🚀、RAG检索增强生成 📚、TTS文字转语音🔊、数字人生成 🦸、 Agent 使用网络查询实时信息🌐、ASR 语音转文字🎙️
https://openxlab.org.cn/apps/detail/HinGwenWong/Streamer-Sales
Apache License 2.0
1.93k stars 272 forks source link

启动时报这个是什么问题?ImportError: cannot import name 'RAG_RETRIEVER' from 'utils.model_loader' #9

Closed Bruceywj closed 1 week ago

Bruceywj commented 2 weeks ago

2024-07-08 06:57:53.976 Uncaught app exception Traceback (most recent call last): File "/home/ef/anaconda3/envs/streamer-sales/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script exec(code, module.dict) File "/home/ef/Streamer-Sales/app.py", line 33, in from utils.model_loader import RAG_RETRIEVER # isort:skip ImportError: cannot import name 'RAG_RETRIEVER' from 'utils.model_loader' (/home/ef/Streamer-Sales/utils/model_loader.py) /home/ef/anaconda3/envs/streamer-sales/lib/python3.10/site-packages/streamlit/watcher/local_sources_watcher.py:196: UserWarning: Torchaudio's I/O functions now support par-call bakcend dispatch. Importing backend implementation directly is no longer guaranteed to work. Please use backend keyword with load/save/info function, instead of calling the udnerlying implementation directly. lambda m: [p for p in m.path._path],

PeterH0323 commented 2 weeks ago

刷新下页面就可以解决了,后续版本会把这个修复

Bruceywj commented 2 weeks ago

谢谢,刷新后,可以继续了。 大佬,有技术群可以拉我进来吗?感谢