Download regenerate_data.py from WizardCoder2007/social_media_analyzer: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/WizardCoder2007/social_media_analyzer/resolve/main/regenerate_data.py
- Command line
-
hf download hf://spaces/WizardCoder2007/social_media_analyzer/regenerate_data.py
-
curl -L -o regenerate_data.py https://huggingface.co/spaces/WizardCoder2007/social_media_analyzer/resolve/main/regenerate_data.py
455 Bytes
| import processor | |
| from pathlib import Path | |
| import os | |
| # Define paths | |
| base_dir = Path(r"d:\CIIS\server") | |
| input_csv = base_dir / "storage" / "latest" / "scraped_input.csv" | |
| output_dir = base_dir / "storage" / "latest" | |
| if input_csv.exists(): | |
| print(f"Regenerating report from {input_csv}...") | |
| processor.generate_reports_from_csv(str(input_csv), str(output_dir)) | |
| print("Regeneration complete.") | |
| else: | |
| print(f"Input file not found: {input_csv}") | |