cccmatthew commited on
Commit
c9c2e0b
1 Parent(s): 6f7294c
Files changed (2) hide show
  1. .github/workflows/main.yml +3 -0
  2. app.py +3 -1
.github/workflows/main.yml CHANGED
@@ -6,6 +6,9 @@ on:
6
  # to run this workflow manually from the Actions tab
7
  workflow_dispatch:
8
 
 
 
 
9
  jobs:
10
  sync-to-hub:
11
  runs-on: ubuntu-latest
 
6
  # to run this workflow manually from the Actions tab
7
  workflow_dispatch:
8
 
9
+ env:
10
+ HF: ${{ secrets.HF }}
11
+
12
  jobs:
13
  sync-to-hub:
14
  runs-on: ubuntu-latest
app.py CHANGED
@@ -5,9 +5,11 @@ import datetime
5
  import time
6
  import pandas as pd
7
  import matplotlib.pyplot as plt
 
8
 
9
  ##########################
10
- headers = {"Authorization": "Bearer "}
 
11
  API_URL = "https://api-inference.huggingface.co/models/cccmatthew/surrey-gp30"
12
  ##########################
13
 
 
5
  import time
6
  import pandas as pd
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
  ##########################
15