soiz1 commited on
Commit
29b242d
·
verified ·
1 Parent(s): 873a2ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -8,6 +8,9 @@ def process_and_zip_folders(huggingface_dataset_url, output_dir):
8
  # URLからリポジトリIDを抽出
9
  if huggingface_dataset_url.startswith("https://huggingface.co/"):
10
  repo_id = huggingface_dataset_url.replace("https://huggingface.co/", "").rstrip("/")
 
 
 
11
  else:
12
  repo_id = huggingface_dataset_url
13
 
 
8
  # URLからリポジトリIDを抽出
9
  if huggingface_dataset_url.startswith("https://huggingface.co/"):
10
  repo_id = huggingface_dataset_url.replace("https://huggingface.co/", "").rstrip("/")
11
+ # 'datasets/'がURLに含まれている場合、取り除く
12
+ if repo_id.startswith("datasets/"):
13
+ repo_id = repo_id[len("datasets/"):]
14
  else:
15
  repo_id = huggingface_dataset_url
16