WIP - Use Google Bard, Improving chatgpt3.5

This commit is contained in:
AjaySi
2024-04-06 20:09:33 +05:30
parent aa004a05b8
commit e33008659b
13 changed files with 75 additions and 145 deletions

View File

@@ -155,7 +155,7 @@ def blog_postprocessing(arxiv_id, research_review):
raise err
try:
blog_title, blog_meta_desc, blog_tags, blog_categories = blog_metadata(research_review, "gemini")
blog_title, blog_meta_desc, blog_tags, blog_categories = blog_metadata(research_review)
except Exception as err:
logger.error(f"Failed to get blog metadata: {err}")
raise err

View File

@@ -11,7 +11,7 @@ logger.add(sys.stdout,
)
def write_blog_from_paper(paper_content, gpt_providers="openai"):
def write_blog_from_paper(paper_content):
""" Write blog from given paper url. """
prompt = f"""As an expert in NLP and AI, I will provide you with a content of a research paper.
Your task is to write a highly detailed blog(at least 2000 words), breaking down complex concepts for beginners.

View File

@@ -12,7 +12,7 @@ logger.add(sys.stdout,
)
def review_research_paper(research_blog, gpt_providers="openai"):
def review_research_paper(research_blog):
""" """
prompt = f"""As world's top researcher and academician, I will provide you with research paper.
Your task is to write a highly detailed review report.