amaye15
commited on
Commit
•
8d0d89f
1
Parent(s):
b105566
webhook bug
Browse files
app.py
CHANGED
@@ -51,7 +51,6 @@ def get_data():
|
|
51 |
Uses streaming to avoid loading the entire dataset into memory at once,
|
52 |
which is useful for handling large datasets.
|
53 |
"""
|
54 |
-
clear_huggingface_cache()
|
55 |
ds = load_dataset(
|
56 |
DS_NAME,
|
57 |
streaming=True,
|
@@ -89,6 +88,7 @@ async def handle_repository_changes(
|
|
89 |
Adds a task to the background task queue to process the dataset
|
90 |
asynchronously.
|
91 |
"""
|
|
|
92 |
logger.info(
|
93 |
f"Webhook received from {payload.repo.name} indicating a repo {payload.event.action}"
|
94 |
)
|
|
|
51 |
Uses streaming to avoid loading the entire dataset into memory at once,
|
52 |
which is useful for handling large datasets.
|
53 |
"""
|
|
|
54 |
ds = load_dataset(
|
55 |
DS_NAME,
|
56 |
streaming=True,
|
|
|
88 |
Adds a task to the background task queue to process the dataset
|
89 |
asynchronously.
|
90 |
"""
|
91 |
+
clear_huggingface_cache()
|
92 |
logger.info(
|
93 |
f"Webhook received from {payload.repo.name} indicating a repo {payload.event.action}"
|
94 |
)
|