自学内容网 自学内容网

MindSearch 部署到Github Codespace 和 Hugging Face Space

在这里插入图片描述
conda init后需要重开终端,不然一键复制会导致后续pip install会安装错环境

还是报错

ImportError: cannot import name 'AutoRegister' from 'class_registry' (/opt/conda/envs/mindsearch/lib/python3.10/site-packages/class_registry/__init__.py)

在这里插入图片描述

pip install --upgrade class_registry

在这里插入图片描述

  1. 部署到 HuggingFace Space

打开Setting——Access token(记得里面的全勾上,不然没权限)

cd /workspaces/codespaces-blank

要进入仓库

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
1.报错:fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
解决: git init 

2.报错:error: No such remote 'space'
解决:git remote -v   #如果没有任何反应表示需要添加
git remote add space https://huggingface.co/spaces/<你的名字>/<仓库名称>

报错和流程修正参考

hugging face成果
在这里插入图片描述


原文地址:https://blog.csdn.net/qq_45047510/article/details/142693948

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!