bug-fix: requirements-change and api updating#12
Open
aibot88 wants to merge 1 commit intoTuring-Project:mainfrom
Open
bug-fix: requirements-change and api updating#12aibot88 wants to merge 1 commit intoTuring-Project:mainfrom
aibot88 wants to merge 1 commit intoTuring-Project:mainfrom
Conversation
aibot88
commented
Jan 27, 2024
- 修复requirements 中的重复包导入问题,删除numpy;openai;requests;selenium;scikit-learn重复安装
- 更新gpt4all的包为2.0+,更新原因:gpt4all修改模型格式和用法,逐渐放弃对bin模型的支持,官网也只能下载gguf文件
- 修复绝对路径
- 修复未知的时间格式为标准时间格式
- 提供local_model的embedding方法
Author
|
|
junhzhan
reviewed
Sep 23, 2024
| from .models import * | ||
|
|
||
| with open("D:\\Tureco\\SimAIWorld\\environment\\frontend_server\\translator\\name.json", "r", encoding="utf-8") as f: | ||
| with open("./translator/name.json", "r", encoding="utf-8") as f: |
There was a problem hiding this comment.
这里用相对路径不一定是对的吧,相对路径是相对于python启动时的工作目录的,而这里其实是想读取到跟views.py在同一目录下的name.json文件
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
