TheJimmy commited on
Commit
c1b8fca
1 Parent(s): b5afbb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -58,11 +58,7 @@ if submit_button:
58
 
59
  pred_book = []
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
 
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()