awacke1 commited on
Commit
7cf7472
1 Parent(s): 6fb608b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1132,7 +1132,8 @@ def main():
1132
  st.markdown("## Glossary Lookup\nEnter a term in the URL query, like `?q=Nanotechnology` or `?query=Martian Syndicate`.")
1133
  try:
1134
  query_params = st.query_params
1135
- query = (query_params.get('q') or query_params.get('query') or [''])[0]
 
1136
  st.markdown('# Running query: ' + query)
1137
  if query: search_glossary(query)
1138
  except:
 
1132
  st.markdown("## Glossary Lookup\nEnter a term in the URL query, like `?q=Nanotechnology` or `?query=Martian Syndicate`.")
1133
  try:
1134
  query_params = st.query_params
1135
+ #query = (query_params.get('q') or query_params.get('query') or [''])[0]
1136
+ query = (query_params.get('q') or query_params.get('query') or [''])
1137
  st.markdown('# Running query: ' + query)
1138
  if query: search_glossary(query)
1139
  except: