slevis commited on
Commit
5ab9912
·
verified ·
1 Parent(s): 681b063

Fix: Correct repo name

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -16,6 +16,8 @@ HISTORY_DF_HEADERS = ["Kirsten", "Robert", "Samuel", "Spielwert", "Spielart", "A
16
  LOCAL_TOURNAMENT_DIR = Path("saved_tournaments/")
17
  LOCAL_TOURNAMENT_DIR.mkdir(exist_ok=True) # Ensure the directory exists
18
 
 
 
19
  # --- Core Functions ---
20
 
21
  def calculate_spielwert(spielart, spitzen_str, hand, schneider, schwarz, schneider_angesagt, schwarz_angesagt, offen):
@@ -102,7 +104,7 @@ def save_turnier_to_hf(history_df):
102
 
103
  # Instantiate the HfApi client to upload the file.
104
  api = HfApi()
105
- repo_id = "skat-scores" # A more descriptive repository name
106
 
107
  try:
108
  # Upload the file directly. The repo will be created if it doesn't exist.
 
16
  LOCAL_TOURNAMENT_DIR = Path("saved_tournaments/")
17
  LOCAL_TOURNAMENT_DIR.mkdir(exist_ok=True) # Ensure the directory exists
18
 
19
+ token = os.getenv('dataset_access_token')
20
+
21
  # --- Core Functions ---
22
 
23
  def calculate_spielwert(spielart, spitzen_str, hand, schneider, schwarz, schneider_angesagt, schwarz_angesagt, offen):
 
104
 
105
  # Instantiate the HfApi client to upload the file.
106
  api = HfApi()
107
+ repo_id = "slevis/skat-scores" # A more descriptive repository name
108
 
109
  try:
110
  # Upload the file directly. The repo will be created if it doesn't exist.