Update app.py
Browse files
app.py
CHANGED
|
@@ -26,14 +26,14 @@ embedding_model = SentenceTransformer("mixedbread-ai/mxbai-embed-large-v1")
|
|
| 26 |
|
| 27 |
df = pd.DataFrame(dataset)
|
| 28 |
#print(df.iloc[[1]])
|
| 29 |
-
print(check1)
|
| 30 |
df['embeddings'] = df['text'].apply(lambda x: embedding_model.encode(x))
|
| 31 |
# add_embeddings as a new column
|
| 32 |
|
| 33 |
-
print(check1a)
|
| 34 |
print(df.iloc[[1]])
|
| 35 |
dataset = Dataset.from_pandas(df)
|
| 36 |
-
print(check1b)
|
| 37 |
|
| 38 |
#dataset['text'][:length]
|
| 39 |
|
|
|
|
| 26 |
|
| 27 |
df = pd.DataFrame(dataset)
|
| 28 |
#print(df.iloc[[1]])
|
| 29 |
+
print("check1")
|
| 30 |
df['embeddings'] = df['text'].apply(lambda x: embedding_model.encode(x))
|
| 31 |
# add_embeddings as a new column
|
| 32 |
|
| 33 |
+
print("check1a")
|
| 34 |
print(df.iloc[[1]])
|
| 35 |
dataset = Dataset.from_pandas(df)
|
| 36 |
+
print("check1b")
|
| 37 |
|
| 38 |
#dataset['text'][:length]
|
| 39 |
|