Update app.py
Browse files
app.py
CHANGED
@@ -58,11 +58,7 @@ if submit_button:
|
|
58 |
|
59 |
pred_book = []
|
60 |
for rr in rrscore_index:
|
61 |
-
|
62 |
-
author = df['Book Author'][topk[rr]]
|
63 |
-
if author == None:
|
64 |
-
author = "could not identify the author"
|
65 |
-
pred_book.append(f"{name} by {author}")
|
66 |
|
67 |
finalpred = []
|
68 |
pred_book.reverse()
|
|
|
58 |
|
59 |
pred_book = []
|
60 |
for rr in rrscore_index:
|
61 |
+
pred_book.append(f"{df['Book Name'][topk[rr]]} by {df['Book Author'][topk[rr]]}")
|
|
|
|
|
|
|
|
|
62 |
|
63 |
finalpred = []
|
64 |
pred_book.reverse()
|