Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ if submit_button:
|
|
60 |
for rr in rrscore_index:
|
61 |
name = df['Book Name'][topk[rr]]
|
62 |
author = df['Book Author'][topk[rr]]
|
63 |
-
if author ==
|
64 |
author = "could not identify the author"
|
65 |
pred_book.append(f"{name} by {author}")
|
66 |
|
|
|
60 |
for rr in rrscore_index:
|
61 |
name = df['Book Name'][topk[rr]]
|
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 |
|