cccbora / auto-draft Goto Github PK
View Code? Open in Web Editor NEW基于GPT4的文献总结工具.
License: MIT License
基于GPT4的文献总结工具.
License: MIT License
Could you make it support custom API?
I currently use Azure OpenAI example.
GPT4自己拿不到API,购买了第三方的,怎么使用第三方API
转发商提供自己的接口和API
Thank you for your time.
I am trying your project.
However, I do not konw how to set openai_api_key, would you tell me the details?
Besr regards
I just wanna know what kind of descriptions make sense to it.
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
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)')))
报错代码段来源:
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.