yutohub commited on
Commit
87f166c
1 Parent(s): bec3a32

Fix app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ st.markdown("This app uses [BM25](https://en.wikipedia.org/wiki/Okapi_BM25), all
48
  prompt = st.chat_input("Search anything...")
49
 
50
  if prompt:
51
- results = retriever.invoke(user_query)
52
  st.text(f"Top n {len(results)} related papers")
53
 
54
  for result in results:
 
48
  prompt = st.chat_input("Search anything...")
49
 
50
  if prompt:
51
+ results = retriever.invoke(prompt)
52
  st.text(f"Top n {len(results)} related papers")
53
 
54
  for result in results: