polinaeterna HF staff commited on
Commit
f914bde
1 Parent(s): 4fe2860

increase timeout

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -261,7 +261,7 @@ with gr.Blocks() as demo:
261
  text_column_dropdown: gr.Dropdown(label="Text column name"),
262
  nested_text_column_dropdown: gr.Dropdown(visible=False)
263
  }
264
- info_resp = session.get(f"https://datasets-server.huggingface.co/info?dataset={dataset}", timeout=3).json()
265
  if "error" in info_resp:
266
  return {
267
  subset_dropdown: gr.Dropdown(visible=False),
@@ -302,7 +302,7 @@ with gr.Blocks() as demo:
302
  return {
303
  subset_dropdown: gr.Dropdown(value=subset, choices=subsets, visible=len(subsets) > 1),
304
  split_dropdown: gr.Dropdown(value=split, choices=splits, visible=len(splits) > 1),
305
- text_column_dropdown: gr.Dropdown(choices=text_features + nested_text_features, label="Text column name", info="Text colum name to check (only non-nested texts are supported)"),
306
  nested_text_column_dropdown: gr.Dropdown(visible=False),
307
  }
308
 
 
261
  text_column_dropdown: gr.Dropdown(label="Text column name"),
262
  nested_text_column_dropdown: gr.Dropdown(visible=False)
263
  }
264
+ info_resp = session.get(f"https://datasets-server.huggingface.co/info?dataset={dataset}", timeout=10).json()
265
  if "error" in info_resp:
266
  return {
267
  subset_dropdown: gr.Dropdown(visible=False),
 
302
  return {
303
  subset_dropdown: gr.Dropdown(value=subset, choices=subsets, visible=len(subsets) > 1),
304
  split_dropdown: gr.Dropdown(value=split, choices=splits, visible=len(splits) > 1),
305
+ text_column_dropdown: gr.Dropdown(choices=text_features + nested_text_features, label="Text column name"),
306
  nested_text_column_dropdown: gr.Dropdown(visible=False),
307
  }
308