C-KLex / Phraends

NLP Application for Summarizing Finance Article
0 stars 0 forks source link

frontEnd 2nd PR #23

Closed Dazeofcitywalk closed 10 months ago

Dazeofcitywalk commented 10 months ago

Summary: change frontend return style from "1. summary" to "1. link: summary:"

Details: · delete previous style · add new style · pass the external test and delete test case

Screenshot:

截屏2023-08-22 下午3 39 32

Others: There is still a path problem in importing the backend modules. I couldn't call the get_5_summary_from_5_articles function to present outputs without importing those modules. So I used external test case to make sure the update output style is working (presented in test.py from the 1st commit, then deleted it from the 2nd commit). If the importing problem is solved, I think it will give the return we want.

alex308248 commented 10 months ago

Wondering why couldn't call the get_5_summary_from_5_articles. Did you try something like the following? api_returns = Phraends_Flask.get_5_summary_from_5_articles(ticker)