Update app.py
Browse files480 unmodified lines481482483484485486487488489490491492493494495480 unmodified linesinput_variables=["summary"],template="""You are a financial analyst tasked with providing a relevance score to news summaries.The score should be based on the financial significance and impact of the news.Use the following scoring guide:- 0.00-0.20: Not relevant to finance or economics- 0.21-0.40: Slightly relevant, but minimal financial impact- 0.41-0.60: Moderately relevant, some financial implications- 0.61-0.80: Highly relevant, significant financial impact- 0.81-1.00: Extremely relevant, major financial implicationsProvide a score between 0.00 and 1.00, where 0.00 is not relevant at all, and 1.00 is extremely relevant from a financial perspective.Summary: {summary}Relevance Score:"""480 unmodified lines481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510480 unmodified linesinput_variables=["summary"],template="""You are a financial analyst tasked with providing a relevance score to news summaries.The score should be based on the financial significance and impact of the news.Consider the following factors when assigning relevance:- Earnings reports and financial performance- Debt issuance or restructuring- Mergers, acquisitions, or divestments- Changes in key leadership (e.g., CEO, CFO)- Regulatory changes or legal issues affecting the company- Major product launches or market expansion- Significant shifts in market share or competitive landscape- Macroeconomic factors directly impacting the company or industry- Stock price movements and trading volume changes- Dividend announcements or changes in capital allocation- Credit rating changes- Material financial events (e.g., bankruptcy, major contracts)Use the following scoring guide:- 0.00-0.20: Not relevant to finance or economics- 0.21-0.40: Slightly relevant, but minimal financial impact- 0.41-0.60: Moderately relevant, some financial implications- 0.61-0.80: Highly relevant, significant financial impact- 0.81-1.00: Extremely relevant, major financial implicationsProvide a score between 0.00 and 1.00, where 0.00 is not relevant at all, and 1.00 is extremely relevant from a financial perspective.Summary: {summary}Relevance Score:"""
app.py+18-3