islasher commited on
Commit
38746ce
1 Parent(s): 3a180c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -32,21 +32,21 @@ username = 'islasher'
32
 
33
 
34
  # Authenticate with Hugging Face
35
- #login()
36
 
37
  # Fetch the API token secret
38
- secret_name = "HF_API_TOKEN"
39
- secret_value = api.secrets.get(username, secret_name)
40
 
41
  # Retrieve the API token
42
- api_token = secret_value["value"]
43
 
44
  # Check if the API token is set
45
- if api_token is None:
46
- raise ValueError(f"Failed to retrieve API token from Hugging Face secret {secret_name}")
47
 
48
  # Authenticate with Hugging Face using the API token
49
- login(token=api_token)
50
 
51
 
52
 
 
32
 
33
 
34
  # Authenticate with Hugging Face
35
+ login()
36
 
37
  # Fetch the API token secret
38
+ #secret_name = "HF_API_TOKEN"
39
+ #secret_value = api.secrets.get(username, secret_name)
40
 
41
  # Retrieve the API token
42
+ #api_token = secret_value["value"]
43
 
44
  # Check if the API token is set
45
+ #if api_token is None:
46
+ # raise ValueError(f"Failed to retrieve API token from Hugging Face secret {secret_name}")
47
 
48
  # Authenticate with Hugging Face using the API token
49
+ #login(token=api_token)
50
 
51
 
52