Spaces:
Runtime error
Runtime error
Update repo_utils.py
Browse files- 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 |
content = {"header": file_summary}
|
| 36 |
|
| 37 |
if file_type in SUPPORTED_FILE_TYPES and file_summary["size"] <= 32 * 1024:
|
|
|
|
| 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 |
|
| 38 |
if file_type in SUPPORTED_FILE_TYPES and file_summary["size"] <= 32 * 1024:
|