Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,6 @@ from huggingface_hub import hf_hub_download, whoami
|
|
8 |
DATASET_NAME = "andito/technical_interview_internship_2025"
|
9 |
TOKEN = os.environ.get("HF_TOKEN")
|
10 |
EXERCISE_URL = os.environ.get("EXERCISE")
|
11 |
-
dataset = load_dataset(DATASET_NAME, split="train")
|
12 |
whitelist = os.environ.get("WHITELIST").split(",")
|
13 |
|
14 |
# Function to fetch the exercise file if not already downloaded
|
@@ -33,6 +32,7 @@ def log_to_hf_dataset(oauth_token: gr.OAuthToken | None):
|
|
33 |
"timestamp": [timestamp],
|
34 |
"ip_address": ["egg"],
|
35 |
})
|
|
|
36 |
updated_dataset = concatenate_datasets([dataset, new_entry])
|
37 |
updated_dataset.push_to_hub(DATASET_NAME, token=TOKEN)
|
38 |
local_file_path = fetch_exercise_file()
|
|
|
8 |
DATASET_NAME = "andito/technical_interview_internship_2025"
|
9 |
TOKEN = os.environ.get("HF_TOKEN")
|
10 |
EXERCISE_URL = os.environ.get("EXERCISE")
|
|
|
11 |
whitelist = os.environ.get("WHITELIST").split(",")
|
12 |
|
13 |
# Function to fetch the exercise file if not already downloaded
|
|
|
32 |
"timestamp": [timestamp],
|
33 |
"ip_address": ["egg"],
|
34 |
})
|
35 |
+
dataset = load_dataset(DATASET_NAME, split="train")
|
36 |
updated_dataset = concatenate_datasets([dataset, new_entry])
|
37 |
updated_dataset.push_to_hub(DATASET_NAME, token=TOKEN)
|
38 |
local_file_path = fetch_exercise_file()
|