Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -39,6 +39,9 @@ app.add_middleware(
|
|
| 39 |
|
| 40 |
fasttext.FastText.eprint = lambda x: None
|
| 41 |
|
|
|
|
|
|
|
|
|
|
| 42 |
# User interface
|
| 43 |
templates_folder = os.path.join(os.path.dirname(__file__), "templates")
|
| 44 |
|
|
|
|
| 39 |
|
| 40 |
fasttext.FastText.eprint = lambda x: None
|
| 41 |
|
| 42 |
+
# set this key as an environment variable
|
| 43 |
+
os.environ["HUGGINGFACEHUB_API_TOKEN"] = st.secrets['huggingface_token']
|
| 44 |
+
|
| 45 |
# User interface
|
| 46 |
templates_folder = os.path.join(os.path.dirname(__file__), "templates")
|
| 47 |
|