Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,9 @@ from tools.final_answer import FinalAnswerTool
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
|
|
|
|
| 11 |
# Import tool from Hub
|
| 12 |
-
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 13 |
|
| 14 |
|
| 15 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
|
| 11 |
+
|
| 12 |
# Import tool from Hub
|
| 13 |
+
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True,hf_token=os.environ["HF_TOKEN"])
|
| 14 |
|
| 15 |
|
| 16 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|