srishtirai commited on
Commit
f24c38b
Β·
verified Β·
1 Parent(s): df181e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -5,6 +5,7 @@ import sqlite3 # Can be replaced with other DB connections
5
  import os
6
  from transformers import AutoTokenizer, AutoModelForCausalLM
7
  from peft import PeftModel, PeftConfig
 
8
 
9
  # βœ… Retrieve Hugging Face token from environment variable (Secret)
10
  HF_TOKEN = os.getenv("HF_TOKEN") # βœ… Now using stored secret, not hardcoded!
 
5
  import os
6
  from transformers import AutoTokenizer, AutoModelForCausalLM
7
  from peft import PeftModel, PeftConfig
8
+ from huggingface_hub import login
9
 
10
  # βœ… Retrieve Hugging Face token from environment variable (Secret)
11
  HF_TOKEN = os.getenv("HF_TOKEN") # βœ… Now using stored secret, not hardcoded!