stefanoviel
commited on
Commit
·
95629a4
1
Parent(s):
de8365c
streamlit
Browse files- src/streamlit_app.py +1 -2
src/streamlit_app.py
CHANGED
@@ -25,8 +25,6 @@ print("Files in current directory:")
|
|
25 |
for f in os.listdir('.'):
|
26 |
print(" -", f)
|
27 |
|
28 |
-
# --- Data Loading and Preparation ---
|
29 |
-
CSV_FILE = 'papers_with_abstracts_parallel.csv'
|
30 |
|
31 |
# --- Caching Functions ---
|
32 |
|
@@ -80,6 +78,7 @@ def load_data_and_embeddings():
|
|
80 |
|
81 |
# Load the raw data from CSV
|
82 |
try:
|
|
|
83 |
data_df = pd.read_csv(CSV_FILE)
|
84 |
corpus_embeddings, data_df = create_and_save_embeddings(model, data_df)
|
85 |
except FileNotFoundError:
|
|
|
25 |
for f in os.listdir('.'):
|
26 |
print(" -", f)
|
27 |
|
|
|
|
|
28 |
|
29 |
# --- Caching Functions ---
|
30 |
|
|
|
78 |
|
79 |
# Load the raw data from CSV
|
80 |
try:
|
81 |
+
st.info("current path is: " + str(os.getcwd()))
|
82 |
data_df = pd.read_csv(CSV_FILE)
|
83 |
corpus_embeddings, data_df = create_and_save_embeddings(model, data_df)
|
84 |
except FileNotFoundError:
|