Annikaijak
commited on
Commit
•
c64d31c
1
Parent(s):
7a14c0d
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,12 @@ df = pd.read_csv('https://github.com/MikkelONielsen/deeplearning_assignment_2/ra
|
|
10 |
# Loading the Simple Sentence Transformer model and storing it as "model"
|
11 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# Defining a dataframe for each testament
|
14 |
df_old = df[df['Testament'] == 'Old']
|
15 |
df_new = df[df['Testament'] == 'New']
|
|
|
10 |
# Loading the Simple Sentence Transformer model and storing it as "model"
|
11 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
12 |
|
13 |
+
# Adding a variable showing if the book is from the Old or New testament
|
14 |
+
df['t'] = df['t'].astype('str')
|
15 |
+
df.loc[df['b'] <= 39, 'Testament'] = 'Old'
|
16 |
+
df.loc[df['b'] > 39, 'Testament'] = 'New'
|
17 |
+
df.head()
|
18 |
+
|
19 |
# Defining a dataframe for each testament
|
20 |
df_old = df[df['Testament'] == 'Old']
|
21 |
df_new = df[df['Testament'] == 'New']
|