awacke1 commited on
Commit
beb88eb
1 Parent(s): abc4176

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -282,7 +282,7 @@ def main():
282
  # ⚙️ q= Run ArXiv search from query parameters
283
  try:
284
  query_params = st.query_params
285
- query = (query_params.get('q') or query_params.get('query') or [''])[0]
286
  if query:
287
  # 🕵️‍♂️ We have a query! Let's process it!
288
  process_text(query)
 
282
  # ⚙️ q= Run ArXiv search from query parameters
283
  try:
284
  query_params = st.query_params
285
+ query = query_params.get('q') or query_params.get('query') or ''
286
  if query:
287
  # 🕵️‍♂️ We have a query! Let's process it!
288
  process_text(query)