chewycharis commited on
Commit
ffdece8
·
verified ·
1 Parent(s): 39228cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -1,4 +1,5 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
 
2
  import datetime
3
  import requests
4
  import pytz
@@ -43,13 +44,15 @@ web_page_display = VisitWebpageTool()
43
  # 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:
44
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
45
 
46
- model = HfApiModel(
47
- max_tokens=2096,
48
- temperature=0.5,
49
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
50
- #model_id = 'HuggingFaceH4/zephyr-7b-beta',
51
- custom_role_conversions=None,
52
- )
 
 
53
 
54
 
55
  # Import tool from Hub
 
1
+ from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool, TransformersModel
2
+
3
  import datetime
4
  import requests
5
  import pytz
 
44
  # 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:
45
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
46
 
47
+ # model = HfApiModel(
48
+ # max_tokens=2096,
49
+ # temperature=0.5,
50
+ # model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
51
+ # #model_id = 'HuggingFaceH4/zephyr-7b-beta',
52
+ # custom_role_conversions=None,
53
+ # )
54
+
55
+ model = TransformersModel(model_id="HuggingFaceTB/SmolLM-135M-Instruct")
56
 
57
 
58
  # Import tool from Hub