Cloudme50 commited on
Commit
3a8ff2e
·
verified ·
1 Parent(s): 8507438

Unit 3 Use case assignment

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -7,7 +7,19 @@ from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
7
  from retriever import load_guest_dataset
8
 
9
  # Initialize the Hugging Face model
10
- model = HfApiModel()
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  # Initialize the web search tool
13
  search_tool = DuckDuckGoSearchTool()
 
7
  from retriever import load_guest_dataset
8
 
9
  # Initialize the Hugging Face model
10
+ #model = HfApiModel()
11
+
12
+ # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
13
+ # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
14
+
15
+ model = HfApiModel(
16
+ max_tokens=2096,
17
+ temperature=0.5,
18
+ # model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
19
+ model_id='meta-llama/Llama-3.2-3B-Instruct',# it is possible that this model may be overloaded
20
+ custom_role_conversions=None,
21
+ )
22
+
23
 
24
  # Initialize the web search tool
25
  search_tool = DuckDuckGoSearchTool()