1. 31 Oct, 2025 1 commit
  2. 30 Oct, 2025 5 commits
    • …icantly refactored the sentiment analyzer to be more robust against missing machine learning dependencies and controllable via a toggle.
      666ghj authored
    • 改为使用uv安装,更加快速,且修复torch和transformers未安装的问题
      Doiiars authored
    • 666ghj authored
    • 666ghj authored
    • Updated iframe source URLs to use the window's hostname instead of localhost.本次提交解决了局域网内其他设备无法正常访问后端服务的问题。此前前端代码中硬编码了localhost作为后端服务的主机地址,导致其他设备访问时,localhost会指向设备自身而非实际运行服务的主机,从而无法连接后端。
      主要修改内容:
      将前端中硬编码的localhost替换为window.location.hostname,动态获取当前页面的主机 IP(即运行服务的电脑局域网 IP)。
      涉及修改的关键位置:
      preloadIframes函数:预加载 iframe 时,使用动态主机地址生成后端服务 URL(如http://${window.location.hostname}:8501)。
      performSearch函数:发送搜索请求时,同样使用动态主机地址构建请求 URL,确保后端接口调用正确指向服务主机。
      注意事项:
      为确保局域网访问正常,后端服务(运行在 8501、8502、8503 等端口)需配置为绑定到0.0.0.0(而非默认的localhost),以允许来自局域网的连接。例如,Python 服务可通过app.run(host='0.0.0.0', port=8501)启动。
      效果:
      修改后,局域网内其他设备通过服务主机的局域网 IP(如192.168.1.100)访问前端页面时,可自动正确连接到后端服务,实现跨设备正常使用。
      Mingxiangyu authored
  3. 16 Oct, 2025 2 commits
  4. 15 Oct, 2025 1 commit
  5. 11 Oct, 2025 2 commits
  6. 10 Oct, 2025 1 commit
  7. 09 Oct, 2025 9 commits
  8. 08 Oct, 2025 2 commits
  9. 07 Oct, 2025 12 commits
  10. 05 Oct, 2025 2 commits
  11. 03 Oct, 2025 1 commit
  12. 20 Sep, 2025 1 commit
  13. 16 Sep, 2025 1 commit