AksharaSachin commited on
Commit
d82cdbd
·
verified ·
1 Parent(s): 29331af

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +8 -10
agent.py CHANGED
@@ -47,16 +47,14 @@ def build_agent():
47
  # huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
48
  # )
49
 
50
- llm = ChatHuggingFace(
51
- HuggingFaceHub(
52
- repo_id="microsoft/DialoGPT-medium",
53
- task="text-generation",
54
- model_kwargs={
55
- "temperature": 0.7,
56
- "max_new_tokens": 100
57
- }
58
- ),
59
- verbose=True)
60
 
61
  tools = [use_wikipedia_tool, use_search_tool]
62
 
 
47
  # huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
48
  # )
49
 
50
+ llm = HuggingFaceHub(
51
+ repo_id="distilbert/distilgpt2",
52
+ model_kwargs={
53
+ "temperature": 0.7,
54
+ "max_new_tokens": 100
55
+ },
56
+ task="text-generation"
57
+ )
 
 
58
 
59
  tools = [use_wikipedia_tool, use_search_tool]
60