Spaces:
Runtime error
Runtime error
Added HUGGINGFACEHUB_API_TOKEN
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ from langchain_community.llms.huggingface_endpoint import HuggingFaceEndpoint
|
|
8 |
|
9 |
# To comment in production usage
|
10 |
# import Constants
|
11 |
-
|
12 |
-
|
13 |
|
14 |
|
15 |
app = Flask(__name__)
|
|
|
8 |
|
9 |
# To comment in production usage
|
10 |
# import Constants
|
11 |
+
import os
|
12 |
+
os.environ["HUGGINGFACEHUB_API_TOKEN"] = $(cat /run/secrets/HUGGINGFACEHUB_API_TOKEN)
|
13 |
|
14 |
|
15 |
app = Flask(__name__)
|