Update app.py
Browse files
app.py
CHANGED
@@ -473,26 +473,9 @@ elif activities=="News Sentiment":
|
|
473 |
results = vector_db.similarity_search("Bullish", k=5)
|
474 |
|
475 |
for i, doc in enumerate(results):
|
476 |
-
st.markdown(f"
|
477 |
st.code(doc.page_content)
|
478 |
st.json(doc.metadata)
|
479 |
-
|
480 |
-
# log_df = pd.DataFrame(db.log_data)
|
481 |
-
# if log_df.empty:
|
482 |
-
# st.write("No log")
|
483 |
-
# else:
|
484 |
-
# log_df["date"] = pd.to_datetime(log_df["date"])
|
485 |
-
|
486 |
-
# with st.sidebar.expander("π History Filters"):
|
487 |
-
# selected_date = st.date_input("Pick a date", value=datetime.now().date())
|
488 |
-
# filtered = log_df[log_df["date"] == pd.to_datetime(selected_date)]
|
489 |
-
|
490 |
-
# st.write(f"Found {len(filtered)} entries on {selected_date}")
|
491 |
-
# for _, row in filtered.iterrows():
|
492 |
-
# st.markdown(f"**{row['company']} ({row['ticker']})** β {row['sentiment']} β {row['action']}")
|
493 |
-
# st.caption(f"Reason: {row['reason']}")
|
494 |
-
|
495 |
-
|
496 |
|
497 |
|
498 |
if st.button("Get Live Updates..."):
|
|
|
473 |
results = vector_db.similarity_search("Bullish", k=5)
|
474 |
|
475 |
for i, doc in enumerate(results):
|
476 |
+
st.markdown(f"π Match {i+1}")
|
477 |
st.code(doc.page_content)
|
478 |
st.json(doc.metadata)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
|
480 |
|
481 |
if st.button("Get Live Updates..."):
|