JohnsonMLEngineer commited on
Commit
94f677e
·
verified ·
1 Parent(s): af5463b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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, token_path=".env"):
27
 
28
  # Read token from .env file
29
- load_dotenv(token_path)
30
- self.token = os.getenv("HF_TOKEN")
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()