Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,8 @@ from smolagents import GradioUI
|
|
| 10 |
import tempfile
|
| 11 |
import gradio as gr
|
| 12 |
import os
|
|
|
|
|
|
|
| 13 |
|
| 14 |
'''
|
| 15 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
@@ -140,7 +142,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 140 |
|
| 141 |
agent = CodeAgent(
|
| 142 |
model=model,
|
| 143 |
-
tools=[final_answer,visit_webpage,create_document,get_file_download_link], ## add your tools here (don't remove final answer)
|
| 144 |
max_steps=6,
|
| 145 |
verbosity_level=1,
|
| 146 |
grammar=None,
|
|
|
|
| 10 |
import tempfile
|
| 11 |
import gradio as gr
|
| 12 |
import os
|
| 13 |
+
from tools.create_presentation import create_presentation
|
| 14 |
+
|
| 15 |
|
| 16 |
'''
|
| 17 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
|
| 142 |
|
| 143 |
agent = CodeAgent(
|
| 144 |
model=model,
|
| 145 |
+
tools=[final_answer,visit_webpage,create_document,get_file_download_link,create_presentation,], ## add your tools here (don't remove final answer)
|
| 146 |
max_steps=6,
|
| 147 |
verbosity_level=1,
|
| 148 |
grammar=None,
|