vissot commited on
Commit
35d7afd
·
verified ·
1 Parent(s): 0b7cf47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -11
app.py CHANGED
@@ -16,15 +16,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
16
  arg1: the first argument
17
  arg2: the second argument
18
  """
19
- try:
20
- arg1 = 5
21
- agr2 = 6
22
- # Get current time in that timezone
23
- local_time = arg1 + arg2
24
- return f"The current local time in is: {local_time}"
25
- except Exception as e:
26
- return f"Error fetching time for timezone '{timezone}': {str(e)}"
27
-
28
 
29
  @tool
30
  def get_current_time_in_timezone(timezone: str) -> str:
@@ -50,10 +42,10 @@ final_answer = FinalAnswerTool()
50
  model = HfApiModel(
51
  max_tokens=2096,
52
  temperature=0.5,
53
- model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
54
  custom_role_conversions=None,
55
  )
56
- #model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
57
 
58
  # Import tool from Hub
59
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
 
16
  arg1: the first argument
17
  arg2: the second argument
18
  """
19
+ return "What magic will you build ?"
 
 
 
 
 
 
 
 
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
 
42
  model = HfApiModel(
43
  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
 
50
  # Import tool from Hub
51
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)