Wauplin HF staff commited on
Commit
091d1c2
1 Parent(s): c4d8606
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -79,7 +79,12 @@ def update_table(
79
  size_query: list,
80
  show_deleted: bool,
81
  query: str,
 
82
  ):
 
 
 
 
83
  filtered_df = filter_models(hidden_df, type_query, size_query, precision_query, show_deleted)
84
  filtered_df = filter_queries(query, filtered_df)
85
  df = select_columns(filtered_df, columns)
 
79
  size_query: list,
80
  show_deleted: bool,
81
  query: str,
82
+ request: gr.Request,
83
  ):
84
+ if not query: # if None or "", check if query parameter is set
85
+ query_from_params = request.query_params.get("query")
86
+ if query_from_params is not None:
87
+ query = query_from_params
88
  filtered_df = filter_models(hidden_df, type_query, size_query, precision_query, show_deleted)
89
  filtered_df = filter_queries(query, filtered_df)
90
  df = select_columns(filtered_df, columns)