nbroad HF staff commited on
Commit
f500dc6
1 Parent(s): 43f37f9

num2skip, num2embed

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -44,13 +44,15 @@ def download(
44
  ds_name,
45
  ds_config,
46
  ds_split,
 
 
47
  progress=gr.Progress(),
48
  ):
49
  if progress is not None:
50
  progress(0.5, "Loading dataset...")
51
 
52
  if ds_name == "wikipedia":
53
- ds = download_wikipedia(ds_name, ds_config)
54
  else:
55
  ds = load_hf_dataset(ds_name, ds_config, ds_split)
56
 
@@ -194,6 +196,8 @@ with gr.Blocks(title="Bulk embeddings") as demo:
194
  ds_name,
195
  ds_config,
196
  ds_split,
 
 
197
  ],
198
  outputs=last,
199
  )
 
44
  ds_name,
45
  ds_config,
46
  ds_split,
47
+ num2skip,
48
+ num2embed,
49
  progress=gr.Progress(),
50
  ):
51
  if progress is not None:
52
  progress(0.5, "Loading dataset...")
53
 
54
  if ds_name == "wikipedia":
55
+ ds = download_wikipedia(ds_name, ds_config, num2skip, num2embed)
56
  else:
57
  ds = load_hf_dataset(ds_name, ds_config, ds_split)
58
 
 
196
  ds_name,
197
  ds_config,
198
  ds_split,
199
+ num2skip,
200
+ num2embed,
201
  ],
202
  outputs=last,
203
  )