Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
|
|
| 1 |
import requests
|
| 2 |
-
import json
|
| 3 |
-
from typing import Dict, Any
|
| 4 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
| 5 |
from tools.final_answer import FinalAnswerTool
|
| 6 |
from Gradio_UI import GradioUI
|
| 7 |
|
| 8 |
-
|
| 9 |
@tool
|
| 10 |
def get_btc_price() -> str:
|
| 11 |
"""Fetches the current Bitcoin price in USD using the CoinGecko API."""
|
|
@@ -37,4 +35,4 @@ agent = CodeAgent(
|
|
| 37 |
prompt_templates=prompt_templates
|
| 38 |
)
|
| 39 |
|
| 40 |
-
GradioUI(agent).launch()
|
|
|
|
| 1 |
+
import yaml
|
| 2 |
import requests
|
|
|
|
|
|
|
| 3 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
| 4 |
from tools.final_answer import FinalAnswerTool
|
| 5 |
from Gradio_UI import GradioUI
|
| 6 |
|
|
|
|
| 7 |
@tool
|
| 8 |
def get_btc_price() -> str:
|
| 9 |
"""Fetches the current Bitcoin price in USD using the CoinGecko API."""
|
|
|
|
| 35 |
prompt_templates=prompt_templates
|
| 36 |
)
|
| 37 |
|
| 38 |
+
GradioUI(agent).launch()
|