Spaces:
Sleeping
Sleeping
apple muncy
commited on
Commit
·
130d92d
1
Parent(s):
60509cc
closer to Unit 3
Browse filesSigned-off-by: apple muncy <[email protected]>
app.py
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
import random
|
3 |
from smolagents import GradioUI, CodeAgent, HfApiModel
|
4 |
-
|
5 |
|
6 |
from retriever import load_guest_dataset
|
7 |
-
from tools import guest_info_tool
|
8 |
|
9 |
-
|
|
|
10 |
|
11 |
alfred = CodeAgent(
|
12 |
-
tools=[
|
13 |
model=model,
|
14 |
add_base_tools=True,
|
15 |
planning_interval=3 # Enable planning every 3 steps
|
|
|
1 |
import gradio as gr
|
2 |
import random
|
3 |
from smolagents import GradioUI, CodeAgent, HfApiModel
|
4 |
+
|
5 |
|
6 |
from retriever import load_guest_dataset
|
|
|
7 |
|
8 |
+
|
9 |
+
guest_info_tool = load_guest_dataset()
|
10 |
|
11 |
alfred = CodeAgent(
|
12 |
+
tools=[guest_info_tool],
|
13 |
model=model,
|
14 |
add_base_tools=True,
|
15 |
planning_interval=3 # Enable planning every 3 steps
|