mirror of
https://github.com/assafelovic/gpt-researcher.git
synced 2024-04-09 14:09:35 +03:00
Fixed sample report generation code according to the latest version.
This commit is contained in:
@@ -12,9 +12,13 @@ async def main():
|
|||||||
# Report Type
|
# Report Type
|
||||||
report_type = "research_report"
|
report_type = "research_report"
|
||||||
|
|
||||||
# Run Research
|
# Initialize the researcher
|
||||||
researcher = GPTResearcher(query=query, report_type=report_type, config_path=None)
|
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
|
return report
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user