peerawatchomp commited on
Commit
ec360aa
·
verified ·
1 Parent(s): 097d9b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -32,12 +32,12 @@ class BasicAgent:
32
  # huggingfacehub_api_token=os.environ.get("HUGGINGFACEHUB_API_TOKEN"),
33
  # )
34
 
35
- chat = ChatOpenAI(
36
- model="gpt-4",
37
- temperature=0.0,
38
- openai_api_key=os.environ.get("OPENAI_API_KEY"), # Secure API Key
39
- verbose=True
40
  )
 
 
41
 
42
  # Set up tools
43
  search_tool = DuckDuckGoSearchRun()
 
32
  # huggingfacehub_api_token=os.environ.get("HUGGINGFACEHUB_API_TOKEN"),
33
  # )
34
 
35
+ llm = HuggingFaceEndpoint(
36
+ repo_id="Qwen/Qwen2.5-Coder-32B-Instruct",
37
+ huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
 
 
38
  )
39
+
40
+ chat = ChatHuggingFace(llm=llm, verbose=True)
41
 
42
  # Set up tools
43
  search_tool = DuckDuckGoSearchRun()