Fixed sample report generation code according to the latest version.

This commit is contained in:
Priyadarshi Roy
2024-04-04 12:29:28 +05:30
parent 8c5a793cd7
commit 7301cced51

View File

@@ -12,9 +12,13 @@ async def main():
# Report Type
report_type = "research_report"
# Run Research
# Initialize the researcher
researcher = GPTResearcher(query=query, report_type=report_type, config_path=None)
report = await researcher.run()
# Conduct research on the given query
researcher.conduct_research()
# Write the report
report = await researcher.write_report()
return report