ThEmpiEric commited on
Commit
907f74b
·
verified ·
1 Parent(s): d9437e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -12,12 +12,12 @@ from Gradio_UI import GradioUI
12
  @tool
13
  def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
14
  #Keep this format for the description / args / args description but feel free to modify the tool
15
- """A tool that does nothing yet, but now can print your name
16
  Args:
17
  arg1: name
18
  arg2: age
19
  """
20
- return "Hello sir now you're age"
21
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str:
@@ -81,12 +81,9 @@ final_answer = FinalAnswerTool()
81
 
82
  model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
83
 
84
- model_name = 'deepseek-ai/DeepSeek-R1'
85
-
86
  model = HfApiModel(
87
  max_tokens=2096,
88
  temperature=0.5,
89
- # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
90
  model_id= model_id, #'stabilityai/stable-diffusion-xl-base-1.0',# it is possible that this model may be overloaded
91
  custom_role_conversions=None,
92
  )
@@ -102,7 +99,7 @@ with open("prompts.yaml", 'r') as stream:
102
 
103
  agent = CodeAgent(
104
  model=model,
105
- tools=[final_answer, get_last_match, image_generation_tool], ## add your tools here (don't remove final answer)
106
  max_steps=6,
107
  verbosity_level=1,
108
  grammar=None,
 
12
  @tool
13
  def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
14
  #Keep this format for the description / args / args description but feel free to modify the tool
15
+ """A tool that does nothing yet
16
  Args:
17
  arg1: name
18
  arg2: age
19
  """
20
+ return "Hello sir"
21
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str:
 
81
 
82
  model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
83
 
 
 
84
  model = HfApiModel(
85
  max_tokens=2096,
86
  temperature=0.5,
 
87
  model_id= model_id, #'stabilityai/stable-diffusion-xl-base-1.0',# it is possible that this model may be overloaded
88
  custom_role_conversions=None,
89
  )
 
99
 
100
  agent = CodeAgent(
101
  model=model,
102
+ tools=[final_answer]#, get_last_match], ## add your tools here (don't remove final answer)
103
  max_steps=6,
104
  verbosity_level=1,
105
  grammar=None,