Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,6 @@ st.sidebar.info("Know more about [NSE Tickers](https://www.google.com/search?q=n
|
|
31 |
|
32 |
st.sidebar.info("Know more about [Charts](https://chart-img.com/)")
|
33 |
ticker_user = st.text_input("Enter Ticker for NSE Stocks","")
|
34 |
-
gemini_embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
35 |
|
36 |
llm = ChatGoogleGenerativeAI(model="gemini-2.5-pro",google_api_key = GOOGLE_API_KEY)
|
37 |
#llm_vis = ChatGoogleGenerativeAI(model="gemini-pro-vision",google_api_key = GOOGLE_API_KEY)
|
@@ -78,11 +77,91 @@ if ticker_user!="":
|
|
78 |
3. News and Sentiment: Review recent news articles, press releases, and social media sentiment.
|
79 |
4. Red Flags: Identify any potential risks or warning signs.
|
80 |
5. Provide a rating for the stock on a scale of 1 to 10.
|
81 |
-
6. Advise if the stock is a good buy for the next
|
82 |
-
7. Suggest at what price we need to buy and hold or sell
|
83 |
|
84 |
PROVIDE THE DETAILS based on just the FACTS present in the document
|
85 |
-
PROVIDE THE DETAILS IN an JSON Object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
"""
|
87 |
|
88 |
# st.sidebar.subheader('Prompt')
|
|
|
31 |
|
32 |
st.sidebar.info("Know more about [Charts](https://chart-img.com/)")
|
33 |
ticker_user = st.text_input("Enter Ticker for NSE Stocks","")
|
|
|
34 |
|
35 |
llm = ChatGoogleGenerativeAI(model="gemini-2.5-pro",google_api_key = GOOGLE_API_KEY)
|
36 |
#llm_vis = ChatGoogleGenerativeAI(model="gemini-pro-vision",google_api_key = GOOGLE_API_KEY)
|
|
|
77 |
3. News and Sentiment: Review recent news articles, press releases, and social media sentiment.
|
78 |
4. Red Flags: Identify any potential risks or warning signs.
|
79 |
5. Provide a rating for the stock on a scale of 1 to 10.
|
80 |
+
6. Advise if the stock is a good buy for the next 1,5, 10 weeks.
|
81 |
+
7. Suggest at what price we need to buy and hold or sell the stock
|
82 |
|
83 |
PROVIDE THE DETAILS based on just the FACTS present in the document
|
84 |
+
PROVIDE THE DETAILS IN an JSON Object. Stick to the below JSON object
|
85 |
+
{
|
86 |
+
"stock_summary": {
|
87 |
+
"company_name": "",
|
88 |
+
"ticker": "",
|
89 |
+
"exchange": "",
|
90 |
+
"description": "",
|
91 |
+
"current_price": "",
|
92 |
+
"market_cap": "",
|
93 |
+
"historical_performance": {
|
94 |
+
"5_day": "",
|
95 |
+
"1_month": "",
|
96 |
+
"6_months": "",
|
97 |
+
"1_year": "",
|
98 |
+
"5_years": ""
|
99 |
+
}
|
100 |
+
},
|
101 |
+
"evaluation_parameters": {
|
102 |
+
"company_fundamentals": {
|
103 |
+
"assessment": "",
|
104 |
+
"key_metrics": {
|
105 |
+
"pe_ratio": "",
|
106 |
+
"volume":"",
|
107 |
+
"revenue_growth_yoy": "",
|
108 |
+
"net_income_growth_yoy": "",
|
109 |
+
"eps_growth_yoy": "",
|
110 |
+
"dividend_yield": "",
|
111 |
+
"balance_sheet": "",
|
112 |
+
"return_on_capital": ""
|
113 |
+
}
|
114 |
+
},
|
115 |
+
"current_and_future_price_trends": {
|
116 |
+
"assessment": "",
|
117 |
+
"historical_trends": "",
|
118 |
+
"current_trends": "",
|
119 |
+
"technical_analysis_notes": "",
|
120 |
+
"technical_indicators":""
|
121 |
+
},
|
122 |
+
"news_and_sentiment": {
|
123 |
+
"assessment": "",
|
124 |
+
"positive_sentiment": [
|
125 |
+
"",
|
126 |
+
"",
|
127 |
+
""
|
128 |
+
],
|
129 |
+
"negative_sentiment": [
|
130 |
+
"",
|
131 |
+
"",
|
132 |
+
""
|
133 |
+
]
|
134 |
+
},
|
135 |
+
"red_flags": [
|
136 |
+
{
|
137 |
+
"flag": "",
|
138 |
+
"details": ""
|
139 |
+
},
|
140 |
+
{
|
141 |
+
"flag": "",
|
142 |
+
"details": ""
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"flag": "",
|
146 |
+
"details": ""
|
147 |
+
}
|
148 |
+
]
|
149 |
+
},
|
150 |
+
"overall_rating": {
|
151 |
+
"rating": "X/10",
|
152 |
+
"justification": ""
|
153 |
+
},
|
154 |
+
"investment_advice": {
|
155 |
+
"next_1_weeks_outlook": "",
|
156 |
+
"next_5_weeks_outlook": "",
|
157 |
+
"next_10_weeks_outlook": "",
|
158 |
+
"price_action_suggestions": {
|
159 |
+
"buy": "",
|
160 |
+
"hold": "",
|
161 |
+
"sell": ""
|
162 |
+
}
|
163 |
+
}
|
164 |
+
}
|
165 |
"""
|
166 |
|
167 |
# st.sidebar.subheader('Prompt')
|