Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def input_prompt(text_input):
|
|
| 99 |
- Financial indicators: Provide key financial metrics such as earnings per share (EPS), price-to-earnings ratio (P/E), and debt-equity ratio.
|
| 100 |
|
| 101 |
3. **Recent News Analysis in Detailed Summary:**
|
| 102 |
-
- Summarize
|
| 103 |
- Assess the impact of each news piece on the stock's performance.
|
| 104 |
- Identify any emerging trends or patterns.
|
| 105 |
|
|
@@ -123,9 +123,6 @@ def input_prompt(text_input):
|
|
| 123 |
|
| 124 |
---
|
| 125 |
|
| 126 |
-
Feel free to adjust or expand upon the instructions to meet your specific requirements!
|
| 127 |
-
|
| 128 |
-
|
| 129 |
consider the following news for analysis.
|
| 130 |
"""
|
| 131 |
text_input.insert(0,input_prompt)
|
|
@@ -161,17 +158,17 @@ def main():
|
|
| 161 |
st.write(response)
|
| 162 |
|
| 163 |
# Feedback box
|
| 164 |
-
st.subheader('Provide Feedback:')
|
| 165 |
-
name = st.text_input('Your Name*', '')
|
| 166 |
-
email = st.text_input('Your Email*', '')
|
| 167 |
-
feedback = st.text_area('Feedback*', '')
|
| 168 |
|
| 169 |
-
if st.button('Submit Feedback'):
|
| 170 |
-
if name.strip() == '' or email.strip() == '' or feedback.strip() == '':
|
| 171 |
-
st.markdown('<p style="color:red;">Please fill in all required fields.</p>', unsafe_allow_html=True)
|
| 172 |
-
else:
|
| 173 |
-
save_feedback(name, email, feedback)
|
| 174 |
-
st.success('Thank you for your feedback!')
|
| 175 |
|
| 176 |
# Execute the main function
|
| 177 |
main()
|
|
|
|
| 99 |
- Financial indicators: Provide key financial metrics such as earnings per share (EPS), price-to-earnings ratio (P/E), and debt-equity ratio.
|
| 100 |
|
| 101 |
3. **Recent News Analysis in Detailed Summary:**
|
| 102 |
+
- Summarize news articles related to the stock.
|
| 103 |
- Assess the impact of each news piece on the stock's performance.
|
| 104 |
- Identify any emerging trends or patterns.
|
| 105 |
|
|
|
|
| 123 |
|
| 124 |
---
|
| 125 |
|
|
|
|
|
|
|
|
|
|
| 126 |
consider the following news for analysis.
|
| 127 |
"""
|
| 128 |
text_input.insert(0,input_prompt)
|
|
|
|
| 158 |
st.write(response)
|
| 159 |
|
| 160 |
# Feedback box
|
| 161 |
+
# st.subheader('Provide Feedback:')
|
| 162 |
+
# name = st.text_input('Your Name*', '')
|
| 163 |
+
# email = st.text_input('Your Email*', '')
|
| 164 |
+
# feedback = st.text_area('Feedback*', '')
|
| 165 |
|
| 166 |
+
# if st.button('Submit Feedback'):
|
| 167 |
+
# if name.strip() == '' or email.strip() == '' or feedback.strip() == '':
|
| 168 |
+
# st.markdown('<p style="color:red;">Please fill in all required fields.</p>', unsafe_allow_html=True)
|
| 169 |
+
# else:
|
| 170 |
+
# save_feedback(name, email, feedback)
|
| 171 |
+
# st.success('Thank you for your feedback!')
|
| 172 |
|
| 173 |
# Execute the main function
|
| 174 |
main()
|