Spaces:
Runtime error
Runtime error
cccmatthew
commited on
Commit
•
1bb9e65
1
Parent(s):
a63e5db
fix secret
Browse files- .github/workflows/main.yml +1 -1
- app.py +1 -1
.github/workflows/main.yml
CHANGED
@@ -7,7 +7,7 @@ on:
|
|
7 |
workflow_dispatch:
|
8 |
|
9 |
env:
|
10 |
-
|
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["
|
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 |
##########################
|