SpringDai commited on
Commit
3e4caaa
·
verified ·
1 Parent(s): b98ecc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -16,7 +16,8 @@ def addition_tool(num1:int, num2:int)-> int: #it's import to specify the return
16
  num1: the first number
17
  num2: the second number
18
  """
19
- return num1 + num2
 
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
@@ -44,6 +45,7 @@ max_tokens=2096,
44
  temperature=0.5,
45
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
46
  custom_role_conversions=None,
 
47
  )
48
 
49
 
 
16
  num1: the first number
17
  num2: the second number
18
  """
19
+ result = num1 + num2
20
+ return f"The addition answer is: {result}"
21
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str:
 
45
  temperature=0.5,
46
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
47
  custom_role_conversions=None,
48
+ token=os.environ["HF_TOKEN"]
49
  )
50
 
51