Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,19 +8,19 @@ import datetime
|
|
| 8 |
from apscheduler.schedulers.background import BackgroundScheduler
|
| 9 |
|
| 10 |
|
| 11 |
-
DB_FILE = "./
|
| 12 |
|
| 13 |
TOKEN = os.environ.get('HUB_TOKEN')
|
| 14 |
repo = huggingface_hub.Repository(
|
| 15 |
local_dir="data",
|
| 16 |
repo_type="dataset",
|
| 17 |
-
clone_from="
|
| 18 |
use_auth_token=TOKEN
|
| 19 |
)
|
| 20 |
repo.git_pull()
|
| 21 |
|
| 22 |
# Set db to latest
|
| 23 |
-
shutil.copyfile("./data/
|
| 24 |
|
| 25 |
|
| 26 |
# Create table if it doesn't already exist
|
|
|
|
| 8 |
from apscheduler.schedulers.background import BackgroundScheduler
|
| 9 |
|
| 10 |
|
| 11 |
+
DB_FILE = "./answers.db"
|
| 12 |
|
| 13 |
TOKEN = os.environ.get('HUB_TOKEN')
|
| 14 |
repo = huggingface_hub.Repository(
|
| 15 |
local_dir="data",
|
| 16 |
repo_type="dataset",
|
| 17 |
+
clone_from="emilywitko/StudyGroupAnswers",
|
| 18 |
use_auth_token=TOKEN
|
| 19 |
)
|
| 20 |
repo.git_pull()
|
| 21 |
|
| 22 |
# Set db to latest
|
| 23 |
+
shutil.copyfile("./data/answers.db", DB_FILE)
|
| 24 |
|
| 25 |
|
| 26 |
# Create table if it doesn't already exist
|