Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,14 +3,12 @@ import datetime
|
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
|
|
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
# Tool to retrieve stock price from Yahoo Finance
|
| 11 |
-
from smolagents.tools import tool
|
| 12 |
-
import requests
|
| 13 |
-
from bs4 import BeautifulSoup
|
| 14 |
|
| 15 |
@tool
|
| 16 |
def get_stock_price(ticker: str) -> str:
|
|
|
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
+
from bs4 import BeautifulSoup
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
# Tool to retrieve stock price from Yahoo Finance
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
@tool
|
| 14 |
def get_stock_price(ticker: str) -> str:
|