Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
except:
|
1284 |
-
|
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 🎲")
|