You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

map_xml_files_to_yml.py 460 B

12345678910111213141516
  1. import os
  2. def generate_string_list(folder_path, prefix):
  3. file_names = os.listdir(folder_path)
  4. string_list = []
  5. for file_name in file_names:
  6. new_string = f"- {'.'.join(file_name.split('.')[:-1])}: {prefix}{file_name}"
  7. string_list.append(new_string)
  8. return string_list
  9. folder_path = "./docs/xmldocs"
  10. prefix = "./xmldocs/"
  11. string_list = generate_string_list(folder_path, prefix)
  12. result = '\n'.join(string_list)
  13. print(result)

C#/.NET上易用的LLM高性能推理框架,支持LLaMA和LLaVA系列模型。