kamau1 commited on
Commit
d455eb8
1 Parent(s): 7fd0b89

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
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