Update app.py
#19
by
Ermiasb
- opened
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
from smolagents import GradioUI, CodeAgent, HfApiModel
|
|
|
|
| 4 |
|
| 5 |
# Import our custom tools from their modules
|
| 6 |
from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
|
|
@@ -29,5 +30,7 @@ alfred = CodeAgent(
|
|
| 29 |
planning_interval=3 # Enable planning every 3 steps
|
| 30 |
)
|
| 31 |
|
|
|
|
|
|
|
| 32 |
if __name__ == "__main__":
|
| 33 |
GradioUI(alfred).launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import random
|
| 3 |
from smolagents import GradioUI, CodeAgent, HfApiModel
|
| 4 |
+
import pandas as pd
|
| 5 |
|
| 6 |
# Import our custom tools from their modules
|
| 7 |
from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
|
|
|
|
| 30 |
planning_interval=3 # Enable planning every 3 steps
|
| 31 |
)
|
| 32 |
|
| 33 |
+
df = pd.DataFrame(data=guest_info_tool)
|
| 34 |
+
print(df)
|
| 35 |
if __name__ == "__main__":
|
| 36 |
GradioUI(alfred).launch()
|