benfunke98 commited on
Commit
3a334df
·
verified ·
1 Parent(s): 098e8f3

added secret

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ import os
6
  import io
7
  import json
8
 
9
- access_token = os.getenv("access_token")
 
10
 
11
  # NOTE - we configure docs_url to serve the interactive Docs at the root path
12
  # of the app. This way, we can use the docs as a landing page for the app on Spaces.
 
6
  import io
7
  import json
8
 
9
+ with open("secret.txt", "r") as file:
10
+ access_token = file.read().strip()
11
 
12
  # NOTE - we configure docs_url to serve the interactive Docs at the root path
13
  # of the app. This way, we can use the docs as a landing page for the app on Spaces.