Update app.py
Browse files
app.py
CHANGED
|
@@ -117,7 +117,7 @@ visit_webpage=VisitWebpageTool()
|
|
| 117 |
|
| 118 |
# Load image generation tool from Hub
|
| 119 |
try:
|
| 120 |
-
image_generation_tool = load_tool("
|
| 121 |
# Common alternative: "agents-course/text-to-image" (uses a smaller SD model)
|
| 122 |
# image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 123 |
print(f"Successfully loaded image generation tool. Name: {getattr(image_generation_tool, 'name', 'N/A')}")
|
|
|
|
| 117 |
|
| 118 |
# Load image generation tool from Hub
|
| 119 |
try:
|
| 120 |
+
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True) # More likely correct
|
| 121 |
# Common alternative: "agents-course/text-to-image" (uses a smaller SD model)
|
| 122 |
# image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 123 |
print(f"Successfully loaded image generation tool. Name: {getattr(image_generation_tool, 'name', 'N/A')}")
|