Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have anyone tried to replace the chatgpt model with DEEPSEEK? Do you know how to change this? #121

Open
gao106 opened this issue Sep 12, 2024 · 2 comments

Comments

@gao106
Copy link

gao106 commented Sep 12, 2024

import openai
from ai_scientist.perform_review import load_paper, perform_review

client = openai.OpenAI()
model = "gpt-4o-2024-05-13"

Load paper from pdf file (raw text)

paper_txt = load_paper("report.pdf")

Get the review dict of the review

review = perform_review(
paper_txt,
model,
client,
num_reflections=5,
num_fs_examples=1,
num_reviews_ensemble=5,
temperature=0.1,
)

Inspect review results

review["Overall"] # overall score 1-10
review["Decision"] # ['Accept', 'Reject']
review["Weaknesses"] # List of weaknesses (str) How to repalce this code?

@xprabhudayal
Copy link

i cant find the report.pdf, does it gets generated by the MODEL?

@gao106
Copy link
Author

gao106 commented Sep 13, 2024

@xprabhudayal same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants