Spaces:
Running
Running
Update modules/app.py
Browse files- modules/app.py +2 -2
modules/app.py
CHANGED
@@ -17,7 +17,6 @@ import fasttext
|
|
17 |
import torch
|
18 |
|
19 |
from datetime import datetime
|
20 |
-
import streamlit as st
|
21 |
import pytz
|
22 |
import time
|
23 |
import os
|
@@ -35,7 +34,8 @@ app.add_middleware(
|
|
35 |
)
|
36 |
|
37 |
# set this key as an environment variable
|
38 |
-
|
|
|
39 |
|
40 |
fasttext.FastText.eprint = lambda x: None
|
41 |
|
|
|
17 |
import torch
|
18 |
|
19 |
from datetime import datetime
|
|
|
20 |
import pytz
|
21 |
import time
|
22 |
import os
|
|
|
34 |
)
|
35 |
|
36 |
# set this key as an environment variable
|
37 |
+
hf_read_key = os.environ.get('huggingface_token')
|
38 |
+
os.environ["HUGGINGFACEHUB_API_TOKEN"] = hf_read_key
|
39 |
|
40 |
fasttext.FastText.eprint = lambda x: None
|
41 |
|