Spaces:
Runtime error
Runtime error
Commit
•
2216ba6
1
Parent(s):
2734f26
Trying without specifying since I have HF_TOKEN in the env
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ SUBREDDIT = os.environ["SUBREDDIT"]
|
|
20 |
USERNAME = os.environ["USERNAME"]
|
21 |
OG_DATASET = f"{USERNAME}/dataset-creator-reddit-{SUBREDDIT}"
|
22 |
PROCESSED_DATASET = os.environ['PROCESSED_DATASET']
|
23 |
-
|
24 |
WEBHOOK_SECRET = os.getenv("HF_WEBHOOK_SECRET", 'secret')
|
25 |
|
26 |
intro_md = """
|
@@ -88,7 +88,7 @@ def _process_webhook(payload: WebhookPayload):
|
|
88 |
|
89 |
# Push the augmented dataset to the Hugging Face hub
|
90 |
logger.info(f"Pushing processed data to the Hugging Face Hub...")
|
91 |
-
dataset.push_to_hub(PROCESSED_DATASET
|
92 |
logger.info(f"Pushed processed data to the Hugging Face Hub")
|
93 |
|
94 |
update_dataset_readme(dataset_name=PROCESSED_DATASET, subreddit=SUBREDDIT, new_rows=updated_row_count)
|
|
|
20 |
USERNAME = os.environ["USERNAME"]
|
21 |
OG_DATASET = f"{USERNAME}/dataset-creator-reddit-{SUBREDDIT}"
|
22 |
PROCESSED_DATASET = os.environ['PROCESSED_DATASET']
|
23 |
+
# HF_TOKEN = os.environ["HF_TOKEN"]
|
24 |
WEBHOOK_SECRET = os.getenv("HF_WEBHOOK_SECRET", 'secret')
|
25 |
|
26 |
intro_md = """
|
|
|
88 |
|
89 |
# Push the augmented dataset to the Hugging Face hub
|
90 |
logger.info(f"Pushing processed data to the Hugging Face Hub...")
|
91 |
+
dataset.push_to_hub(PROCESSED_DATASET)
|
92 |
logger.info(f"Pushed processed data to the Hugging Face Hub")
|
93 |
|
94 |
update_dataset_readme(dataset_name=PROCESSED_DATASET, subreddit=SUBREDDIT, new_rows=updated_row_count)
|