awacke1 commited on
Commit
a7cadd7
·
verified ·
1 Parent(s): 8189415

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -1274,14 +1274,14 @@ def main():
1274
  # Relocated! Hope you like your new space - enjoy!
1275
  # Display instructions and handle query parameters
1276
  st.markdown("## Glossary Lookup\nEnter a term in the URL query, like `?q=Nanotechnology` or `?query=Martian Syndicate`.")
1277
- try:
1278
- query_params = st.query_params
1279
- #query = (query_params.get('q') or query_params.get('query') or [''])[0]
1280
- query = (query_params.get('q') or query_params.get('query') or [''])
1281
- st.markdown('# Running query: ' + query)
1282
- if query: search_glossary(query)
1283
- except:
1284
- st.markdown('No glossary lookup')
1285
 
1286
  # Display the glossary grid
1287
  st.title("Roleplaying Games Glossary 🎲")
 
1274
  # Relocated! Hope you like your new space - enjoy!
1275
  # Display instructions and handle query parameters
1276
  st.markdown("## Glossary Lookup\nEnter a term in the URL query, like `?q=Nanotechnology` or `?query=Martian Syndicate`.")
1277
+ #try:
1278
+ query_params = st.query_params
1279
+ #query = (query_params.get('q') or query_params.get('query') or [''])[0]
1280
+ query = (query_params.get('q') or query_params.get('query') or [''])
1281
+ st.markdown('# Running query: ' + query)
1282
+ if query: search_glossary(query)
1283
+ #except:
1284
+ # st.markdown('No glossary lookup')
1285
 
1286
  # Display the glossary grid
1287
  st.title("Roleplaying Games Glossary 🎲")