Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|