cccmatthew commited on
Commit
1bb9e65
1 Parent(s): a63e5db

fix secret

Browse files
Files changed (2) hide show
  1. .github/workflows/main.yml +1 -1
  2. app.py +1 -1
.github/workflows/main.yml CHANGED
@@ -7,7 +7,7 @@ on:
7
  workflow_dispatch:
8
 
9
  env:
10
- HF: ${{ secrets.HF }}
11
 
12
  jobs:
13
  sync-to-hub:
 
7
  workflow_dispatch:
8
 
9
  env:
10
+ api_secret: ${{ secrets.HF }}
11
 
12
  jobs:
13
  sync-to-hub:
app.py CHANGED
@@ -8,7 +8,7 @@ import matplotlib.pyplot as plt
8
  import os
9
 
10
  ##########################
11
- SECRET = os.environ["HF"]
12
  headers = {"Authorization": "Bearer " + SECRET}
13
  API_URL = "https://api-inference.huggingface.co/models/cccmatthew/surrey-gp30"
14
  ##########################
 
8
  import os
9
 
10
  ##########################
11
+ SECRET = os.environ["api_secret"]
12
  headers = {"Authorization": "Bearer " + SECRET}
13
  API_URL = "https://api-inference.huggingface.co/models/cccmatthew/surrey-gp30"
14
  ##########################