Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from Gradio_UI import GradioUI
|
|
10 |
|
11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
12 |
|
13 |
-
llm = InferenceClient('
|
14 |
|
15 |
@tool
|
16 |
def write_image_spec(pointers: str)-> str: #it's import to specify the return type
|
@@ -74,7 +74,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
74 |
|
75 |
agent = CodeAgent(
|
76 |
model=model,
|
77 |
-
tools=[final_answer, write_image_spec],
|
78 |
max_steps=6,
|
79 |
verbosity_level=1,
|
80 |
grammar=None,
|
|
|
10 |
|
11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
12 |
|
13 |
+
llm = InferenceClient('Qwen/Qwen2.5-0.5B-Instruct')
|
14 |
|
15 |
@tool
|
16 |
def write_image_spec(pointers: str)-> str: #it's import to specify the return type
|
|
|
74 |
|
75 |
agent = CodeAgent(
|
76 |
model=model,
|
77 |
+
tools=[final_answer, write_image_spec, image_generation_tool],
|
78 |
max_steps=6,
|
79 |
verbosity_level=1,
|
80 |
grammar=None,
|