import polars as pl | |
import datetime | |
import io | |
import time | |
import sys | |
from huggingface_hub import HfApi | |
# Convert DataFrame to Parquet in-memory | |
list_spaces = [ | |
"TJStatsApps/spring_statcast_leaderboard", | |
"TJStatsApps/spring_training_pitching_app", | |
"TJStatsApps/pitching_summary_compare", | |
"TJStatsApps/pitching_summary_complete", | |
"TJStatsApps/pitch_plot_select_spring", | |
"TJStatsApps/test_daily", | |
"TJStatsApps/pitching_summary_daily", | |
"TJStatsApps/pitch_plot_select", | |
"TJStatsApps/pitching_heat_maps", | |
] | |
api = HfApi() | |
for space in list_spaces: | |
api.upload_file( | |
path_or_fileobj="huggingface_upload_api_scarper.py", | |
path_in_repo="huggingface_upload_api_scarper.py", | |
repo_id=space, | |
repo_type="space", | |
) | |