rtamaki commited on
Commit
5f95d7e
·
verified ·
1 Parent(s): 408bf7b

Adding HF API Key call and the login into HF Hub

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -7,6 +7,10 @@ import pandas as pd
7
  # (Keep Constants as is)
8
  # --- Constants ---
9
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
 
 
 
10
 
11
  # --- Basic Agent Definition ---
12
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
 
7
  # (Keep Constants as is)
8
  # --- Constants ---
9
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
10
+ hf_api_key = os.getenv("huggingface_langchain")
11
+
12
+ from huggingface_hub import login as hg_hub_login
13
+ hg_hub_login(hf_api_key)
14
 
15
  # --- Basic Agent Definition ---
16
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------