Spaces:
No application file
No application file
Download move.py from abdallah110/planet_rag_api: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/abdallah110/planet_rag_api/resolve/main/move.py
- Command line
-
hf download hf://spaces/abdallah110/planet_rag_api/move.py
-
curl -L -o move.py https://huggingface.co/spaces/abdallah110/planet_rag_api/resolve/main/move.py
492 Bytes
| import os | |
| import shutil | |
| import glob | |
| # ุงููููุฏุฑ ุงูุฌุฏูุฏ | |
| destination_folder = "diseases" | |
| os.makedirs(destination_folder, exist_ok=True) # ูู ู ุด ู ูุฌูุฏุ ููุดุฆู | |
| # ุงูุจุญุซ ุนู ูู ู ููุงุช .txt ูู ุงููููุฏุฑ ุงูุญุงูู | |
| txt_files = glob.glob("*.txt") | |
| # ููู ูู ู ูู | |
| for file in txt_files: | |
| shutil.move(file, os.path.join(destination_folder, os.path.basename(file))) | |
| print(f"โ ุชู ููู {len(txt_files)} ู ูู ุฅูู '{destination_folder}'") |