JuliaWolken commited on
Commit
8e20781
1 Parent(s): 2966419

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -5,8 +5,12 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
5
  from sklearn.metrics.pairwise import cosine_similarity
6
  import torch
7
  import re
 
 
 
 
 
8
 
9
- chunks_data_path = 'JuliaWolken/chunks-project'
10
  model = SentenceTransformer('JuliaWolken/fine_tuned_model_with_triplets')
11
 
12
  chunks_df = pd.read_csv(chunks_data_path)
 
5
  from sklearn.metrics.pairwise import cosine_similarity
6
  import torch
7
  import re
8
+ from datasets import load_dataset
9
+
10
+ dataset = load_dataset("JuliaWolken/chunks.csv", split="train")
11
+ chunks_df = dataset.to_pandas()
12
+
13
 
 
14
  model = SentenceTransformer('JuliaWolken/fine_tuned_model_with_triplets')
15
 
16
  chunks_df = pd.read_csv(chunks_data_path)