Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,16 +52,12 @@ model = HfApiModel(
|
|
| 52 |
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/',
|
| 53 |
)
|
| 54 |
|
| 55 |
-
# Import tool from Hub
|
| 56 |
-
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 57 |
-
|
| 58 |
-
|
| 59 |
# Define tools list
|
| 60 |
tools = {
|
| 61 |
"final_answer": FinalAnswerTool(),
|
| 62 |
"is_prime": is_prime,
|
| 63 |
"get_current_time_in_timezone": get_current_time_in_timezone,
|
| 64 |
-
"image_generation_tool":
|
| 65 |
}
|
| 66 |
|
| 67 |
with open("prompts.yaml", 'r') as stream:
|
|
|
|
| 52 |
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/',
|
| 53 |
)
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
# Define tools list
|
| 56 |
tools = {
|
| 57 |
"final_answer": FinalAnswerTool(),
|
| 58 |
"is_prime": is_prime,
|
| 59 |
"get_current_time_in_timezone": get_current_time_in_timezone,
|
| 60 |
+
"image_generation_tool": load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 61 |
}
|
| 62 |
|
| 63 |
with open("prompts.yaml", 'r') as stream:
|