Spaces:
Sleeping
Sleeping
Update stock_vector_db.py
Browse files- stock_vector_db.py +2 -0
stock_vector_db.py
CHANGED
@@ -124,6 +124,8 @@ def save_top_picks_json(vector_db,top_picks, date, path="top_picks.jsonl"):
|
|
124 |
"date": date.isoformat(),
|
125 |
"top_picks": top_picks
|
126 |
}
|
|
|
|
|
127 |
vector_db.upload_top_picks_jsonl(path)
|
128 |
st.sidebar.write(f"✅ Saved top picks to {path}")
|
129 |
|
|
|
124 |
"date": date.isoformat(),
|
125 |
"top_picks": top_picks
|
126 |
}
|
127 |
+
with open(path, "a") as f:
|
128 |
+
f.write(json.dumps(record) + "\n")
|
129 |
vector_db.upload_top_picks_jsonl(path)
|
130 |
st.sidebar.write(f"✅ Saved top picks to {path}")
|
131 |
|