66596
commited on
Commit
·
12f677e
1
Parent(s):
0b1cc37
refactor: remove detail esg score
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def google_search(search_term, api_key, cse_id, **kwargs):
|
|
57 |
return items_to_return
|
58 |
|
59 |
if company:
|
60 |
-
print(f'Run: {company}')
|
61 |
links = []
|
62 |
news_text = []
|
63 |
|
@@ -288,10 +288,13 @@ if company:
|
|
288 |
|
289 |
risk = esg_risk_categorization(ESG_score)
|
290 |
|
291 |
-
# st.dataframe(df)
|
292 |
-
|
293 |
st.write(company)
|
294 |
-
|
295 |
-
|
|
|
|
|
|
|
|
|
|
|
296 |
st.write(f'ESG Category Risk Prediction: {risk}')
|
297 |
|
|
|
57 |
return items_to_return
|
58 |
|
59 |
if company:
|
60 |
+
# print(f'Run: {company}')
|
61 |
links = []
|
62 |
news_text = []
|
63 |
|
|
|
288 |
|
289 |
risk = esg_risk_categorization(ESG_score)
|
290 |
|
|
|
|
|
291 |
st.write(company)
|
292 |
+
log_detail = """
|
293 |
+
Company: {}
|
294 |
+
ESG Score Prediction: {}
|
295 |
+
ESG Category Risk Prediction: {}
|
296 |
+
""".format(company, ESG_score, risk)
|
297 |
+
print(log_detail)
|
298 |
+
|
299 |
st.write(f'ESG Category Risk Prediction: {risk}')
|
300 |
|