dwb2023 commited on
Commit
5a1d661
1 Parent(s): 5ea6611

Update repo_utils.py

Browse files
Files changed (1) hide show
  1. repo_utils.py +1 -0
repo_utils.py CHANGED
@@ -32,6 +32,7 @@ def extract_repo_content(url, hf_token, hf_user):
32
  extracted_content = []
33
  for file_path, file_type in file_types.items():
34
  file_summary = get_file_summary(file_path, file_type)
 
35
  file_summary["name"] = file_summary["name"].replace("temp_repo/", "")
36
  content = {"header": file_summary}
37
 
 
32
  extracted_content = []
33
  for file_path, file_type in file_types.items():
34
  file_summary = get_file_summary(file_path, file_type)
35
+ # Remove temp_repo/ prefix from the file path
36
  file_summary["name"] = file_summary["name"].replace("temp_repo/", "")
37
  content = {"header": file_summary}
38