Spaces:
Sleeping
Sleeping
| import os | |
| def save_text(text: str, path: str): | |
| os.makedirs(os.path.dirname(path), exist_ok=True) | |
| with open(path, "w", encoding="utf-8") as f: | |
| f.write(text) | |
| import os | |
| def save_text(text: str, path: str): | |
| os.makedirs(os.path.dirname(path), exist_ok=True) | |
| with open(path, "w", encoding="utf-8") as f: | |
| f.write(text) | |