rajat5ranjan commited on
Commit
7d80a24
·
verified ·
1 Parent(s): 39518ae

chaniging escape in prompts

Browse files
Files changed (1) hide show
  1. app.py +28 -28
app.py CHANGED
@@ -82,26 +82,26 @@ if ticker_user!="":
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": "",
@@ -110,16 +110,16 @@ if ticker_user!="":
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
  "",
@@ -131,37 +131,37 @@ if ticker_user!="":
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')
 
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": "",
 
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
  "",
 
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')