myshirk commited on
Commit
c4b2b97
1 Parent(s): 1aec946

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -14
app.py CHANGED
@@ -117,21 +117,18 @@ def main():
117
  st.write("## Results and Demo")
118
 
119
  query = st.text_input("Enter your query:")
120
-
121
- try:
122
- if query != "":
123
- with st.spinner("Searching..."):
124
- results = show_model(query)
125
-
126
- #Output passages & scores
127
- for doc, score, title in results[:10]:
128
- st.write("Score: ", score)
129
- st.write("Title:", title)
130
- st.write("Abstract:", abstract)
131
- st.write("---")
132
 
133
- except EOFError:
134
- pass
 
 
 
 
 
135
 
136
 
137
 
 
117
  st.write("## Results and Demo")
118
 
119
  query = st.text_input("Enter your query:")
120
+
121
+ if query != "":
122
+ with st.spinner("Searching..."):
123
+ results = show_model(query)
 
 
 
 
 
 
 
 
124
 
125
+ #Output passages & scores
126
+ for doc, score, title in results[:10]:
127
+ st.write("Score: ", score)
128
+ st.write("Title:", title)
129
+ st.write("Abstract:", abstract)
130
+ st.write("---")
131
+
132
 
133
 
134