theguywhosucks commited on
Commit
cd775cc
·
verified ·
1 Parent(s): a47280a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ HF_TOKEN = os.getenv("HF_TOKEN")
7
  if not HF_TOKEN:
8
  raise ValueError("HF_TOKEN environment variable not set. Please set it before running the app.")
9
 
10
- # Initialize the client for the Coldet backend
11
- coldet_client = Client("Coldet/backend", hf_token=HF_TOKEN)
12
 
13
  # --- Helper Functions ---
14
 
 
7
  if not HF_TOKEN:
8
  raise ValueError("HF_TOKEN environment variable not set. Please set it before running the app.")
9
 
10
+ # Initialize the client for the Coldet backend with HF_TOKEN in headers
11
+ coldet_client = Client("Coldet/backend", headers={"Authorization": f"Bearer {HF_TOKEN}"})
12
 
13
  # --- Helper Functions ---
14