FALSHEIKHI commited on
Commit
ca80d3f
1 Parent(s): d82ab49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -9,7 +9,15 @@ import pandas as pd
9
  from transformers import pipeline
10
 
11
 
12
- df = pd.read_csv("df_end.csv")
 
 
 
 
 
 
 
 
13
  model = SentenceTransformer('all-MiniLM-L6-v2')
14
  cities = df['locality'].unique()
15
 
 
9
  from transformers import pipeline
10
 
11
 
12
+ df = None
13
+
14
+ # Open the file in binary mode
15
+ with open('file.pkl', 'rb') as file:
16
+
17
+ # Call load method to deserialze
18
+ df = pickle.load(file)
19
+
20
+
21
  model = SentenceTransformer('all-MiniLM-L6-v2')
22
  cities = df['locality'].unique()
23