Giter Club home page Giter Club logo

Comments (5)

NaOHCC avatar NaOHCC commented on July 22, 2024

Windows 有同样的问题,这个函数不太完善

# 运行时变量值
# PATH_PRIVATE_UPLOAD = 'private_upload'
# PATH_LOGGING = 'gpt_log'
# path_or_url = 'C:\\Users\\xxx/arxiv_cache/2309.06180\\extract'

# 这个 if 命中最后一个 else
    if path_or_url.startswith(PATH_LOGGING):    # 日志文件(按用户划分)
        sensitive_path = PATH_LOGGING
    elif path_or_url.startswith(PATH_PRIVATE_UPLOAD):   # 用户的上传目录(按用户划分)
        sensitive_path = PATH_PRIVATE_UPLOAD
    elif path_or_url.startswith('tests'):   # 一个常用的测试目录
        return True
    else:
        raise FriendlyException(f"输入文件的路径 ({path_or_url}) 存在,但位置非法。请将文件上传后再执行该任务。") # return False

临时解法是在这个函数最前面加一行return True就行了

from gpt_academic.

zhiqing0205 avatar zhiqing0205 commented on July 22, 2024

感谢 已解决

from gpt_academic.

fengyunzaidushi avatar fengyunzaidushi commented on July 22, 2024

image
windows项目路径应该如何输入,提示路径非法。

from gpt_academic.

fengyunzaidushi avatar fengyunzaidushi commented on July 22, 2024

理解了,本地文件项目要打包成压缩文件.zip/.tar格式才可以

from gpt_academic.

Linon419 avatar Linon419 commented on July 22, 2024

现在3.8.2还是这样

from gpt_academic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.