sachin-philip commited on
Commit
a060213
·
1 Parent(s): 648a915

updated with token

Browse files
Files changed (2) hide show
  1. agent.py +1 -0
  2. requirements.txt +5 -5
agent.py CHANGED
@@ -6,6 +6,7 @@ import os
6
  # Load LLM from Hugging Face Hub
7
  llm = HuggingFaceHub(
8
  repo_id="google/flan-t5-large",
 
9
  model_kwargs={"temperature": 0.7, "max_length": 512},
10
  )
11
 
 
6
  # Load LLM from Hugging Face Hub
7
  llm = HuggingFaceHub(
8
  repo_id="google/flan-t5-large",
9
+ huggingfacehub_api_token=os.environ["HUGGINGFACEHUB_API_TOKEN"],
10
  model_kwargs={"temperature": 0.7, "max_length": 512},
11
  )
12
 
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
  gradio
2
- langchain>=0.1.0
3
- langchain-community>=0.0.20
4
- transformers>=4.30.0
5
- huggingface-hub>=0.16.0
6
- python-dotenv>=1.0.0
 
1
  gradio
2
+ langchain-core
3
+ langchain-community
4
+ langchain-huggingface
5
+ transformers
6
+ serpapi