-
Notifications
You must be signed in to change notification settings - Fork 0
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
Get Summary API for Frontend User #18
Conversation
link_list = [] | ||
summary_list = [] | ||
|
||
link_list, raw_article_list = Crawler.main(ticker) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Crawler.main()
should also return the link. You need to adjust your code in Crawler.py
openai.api_key = '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' | ||
|
||
#article_texts = Crawler.main() | ||
def main(article_texts): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function should input the articles
and return the summaries
.
No action is needed at this PR, just notify you simply.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
affc288
to
3387c02
Compare
3387c02
to
6c230ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clear and easy understanding refactor!
Get Summary API
Summary
Input a ticker name from the front, the API will provide five article links and the corresponding five summaries.
Refactor
Crawler.py
and also revise the return variable, adding link as return.Attention
@tejkoiejgns ModelAPI.main()
ModelAPI.main()
should take an input, the article texts. Check the code and you will see what I mean.@Weirdojord Crawler.main()
Crawler.main()
should also return the corresponding five links. Each of your get_article sub-function has a returnlinks
, but in themain()
, it doesn't return the links. I wanted you to organize the Crawler.py script to satisfy the needs of the API in this PR.