Update app.py
Browse files
app.py
CHANGED
@@ -23,13 +23,11 @@ MODELS = {
|
|
23 |
TRAINING_DATA_FILE = "training_data.json"
|
24 |
|
25 |
class HuggingFaceStorage:
|
26 |
-
def __init__(self, repo_id
|
27 |
|
28 |
# Read token from .env file
|
29 |
-
|
30 |
-
|
31 |
-
if not self.token:
|
32 |
-
raise ValueError("HF_TOKEN not found in .env file")
|
33 |
|
34 |
self.repo_id = repo_id
|
35 |
self.api = HfApi()
|
|
|
23 |
TRAINING_DATA_FILE = "training_data.json"
|
24 |
|
25 |
class HuggingFaceStorage:
|
26 |
+
def __init__(self, repo_id):
|
27 |
|
28 |
# Read token from .env file
|
29 |
+
|
30 |
+
|
|
|
|
|
31 |
|
32 |
self.repo_id = repo_id
|
33 |
self.api = HfApi()
|