Spaces:
Running
Running
chsubhasis
commited on
Commit
•
ba0e04c
1
Parent(s):
2dd051b
hfkey updated
Browse files
app.py
CHANGED
@@ -19,9 +19,10 @@ from langchain_core.output_parsers import StrOutputParser
|
|
19 |
from langchain_core.prompts import PromptTemplate
|
20 |
from langchain_core.runnables import RunnableLambda
|
21 |
|
22 |
-
hfapi_key = getpass("Enter you HuggingFace access token:")
|
23 |
-
os.environ["HF_TOKEN"] = hfapi_key
|
24 |
-
os.environ["HUGGINGFACEHUB_API_TOKEN"] = hfapi_key
|
|
|
25 |
|
26 |
set_llm_cache(InMemoryCache()) # Set cache globally
|
27 |
|
|
|
19 |
from langchain_core.prompts import PromptTemplate
|
20 |
from langchain_core.runnables import RunnableLambda
|
21 |
|
22 |
+
#hfapi_key = getpass("Enter you HuggingFace access token:")
|
23 |
+
#os.environ["HF_TOKEN"] = hfapi_key
|
24 |
+
#os.environ["HUGGINGFACEHUB_API_TOKEN"] = hfapi_key
|
25 |
+
hfapi_key = os.getenv("Mytoken")
|
26 |
|
27 |
set_llm_cache(InMemoryCache()) # Set cache globally
|
28 |
|