ClassicCollins commited on
Commit
b882a25
·
verified ·
1 Parent(s): 44fedfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,7 +9,7 @@ from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
- def my_culculator(arg1:int, arg2:int)-> int: #it's import to specify the return type
13
  #Keep this format for the description / args / args description but feel free to modify the tool
14
  """A tool that Multiply two integers.
15
  Args:
@@ -35,7 +35,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
35
 
36
 
37
  new_york_current_timezone = get_current_time_in_timezone('New_York')
38
- calculator = my_culculator(6,7)
39
  final_answer = FinalAnswerTool()
40
 
41
  # 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,7 +44,7 @@ final_answer = FinalAnswerTool()
44
  model = HfApiModel(
45
  max_tokens=2096,
46
  temperature=0.5,
47
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
48
  custom_role_conversions=None,
49
  )
50
 
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
+ def my_calculator(arg1:int, arg2:int)-> int: #it's import to specify the return type
13
  #Keep this format for the description / args / args description but feel free to modify the tool
14
  """A tool that Multiply two integers.
15
  Args:
 
35
 
36
 
37
  new_york_current_timezone = get_current_time_in_timezone('New_York')
38
+ calculator = my_calculator(6,7)
39
  final_answer = FinalAnswerTool()
40
 
41
  # 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 = HfApiModel(
45
  max_tokens=2096,
46
  temperature=0.5,
47
+ model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud', #'Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
48
  custom_role_conversions=None,
49
  )
50