TheJimmy commited on
Commit
b5afbb5
·
verified ·
1 Parent(s): d7b1097

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 == "nan":
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