Giter Club home page Giter Club logo

auto-draft's People

Contributors

cccbora avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-draft's Issues

Support custom API

Could you make it support custom API?
I currently use Azure OpenAI example.

GPT4第三方转发商支持

GPT4自己拿不到API,购买了第三方的,怎么使用第三方API
转发商提供自己的接口和API

摘要生成完之后,报错显示生成文件夹里没有fig.png

abstract part has been generated.

USAGE>> For generating abstract, 6081 tokens have been used (5453 for prompts; 628 for completion). 33277 tokens have been used in total.
================POST-PROCESSING================
Traceback (most recent call last):
File "/home/dk/Downloads/auto-draft-main/auto_backgrounds.py", line 302, in
output = generate_draft(target_title, knowledge_database="ml_textbook_test")
File "/home/dk/Downloads/auto-draft-main/auto_backgrounds.py", line 280, in generate_draft
create_copies(destination_folder)
File "/home/dk/Downloads/auto-draft-main/utils/tex_processing.py", line 57, in create_copies
shutil.copy2(original_fig, target_fig)
File "/home/dk/anaconda3/envs/autopaper/lib/python3.9/shutil.py", line 444, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/home/dk/anaconda3/envs/autopaper/lib/python3.9/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'outputs/outputs_20230704_220432/fig.png'

Process finished with exit code 1

Failed to query from FAISS

Capture
环境设置API之后直接运行,在运行过程中,出现这个问题,请问该如何解决?谢谢

Failed with error "requests.exceptions.SSLError: HTTPSConnectionPool(host='api.semanticscholar.org', port=443)"

Hi,

I am trying to run this code. And it always raise with this error, do you have any advice on this? Thanks in advance!

Error:
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.semanticscholar.org', port=443): Max retries exceeded with url: /graph/v1/paper/search?query=clinical+presentation&limit=10&fields=title,abstract,venue,year,authors,tldr,embedding,externalIds (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))

Failed to query from FAISS

报错代码段来源:
db_index_path = os.path.join(db_path, "faiss_index")
if os.path.isdir(db_path):
try:
# load configuration file
with open(db_config_path, "r", encoding="utf-8") as f:
db_config = json.load(f)

debug这两行代码:
with open(db_config_path, "r", encoding="utf-8") as f:
db_config = json.load(f)
报错信息:
PyDev console: starting.
Traceback (most recent call last):
File "/home/dk/Downloads/pycharm-professional-2023.1.3/pycharm-2023.1.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "", line 2, in
File "/home/dk/anaconda3/envs/autopaper/lib/python3.9/json/init.py", line 293, in load
return loads(fp.read(),
File "/home/dk/anaconda3/envs/autopaper/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/home/dk/anaconda3/envs/autopaper/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/dk/anaconda3/envs/autopaper/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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.