Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def today_tool(text: str) -> str:
|
|
34 |
This function always returns today's date."""
|
35 |
return str(date.today())
|
36 |
|
37 |
-
def yf_download_tool(tickers: List[str],
|
38 |
"""Returns historical stock data for given tickers from a start date to an end date
|
39 |
using the yfinance library download function.
|
40 |
Use this function for any questions related to getting historical stock data.
|
@@ -268,7 +268,7 @@ gr.ChatInterface(
|
|
268 |
["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
|
269 |
["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
|
270 |
["Execute: First 25 Fibbonaci numbers"],
|
271 |
-
["Get today's date, then generate a chart using
|
272 |
],
|
273 |
cache_examples=False,
|
274 |
).launch()
|
|
|
34 |
This function always returns today's date."""
|
35 |
return str(date.today())
|
36 |
|
37 |
+
def yf_download_tool(tickers: List[str], start_date: date, end_date: date) -> pd.DataFrame:
|
38 |
"""Returns historical stock data for given tickers from a start date to an end date
|
39 |
using the yfinance library download function.
|
40 |
Use this function for any questions related to getting historical stock data.
|
|
|
268 |
["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
|
269 |
["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
|
270 |
["Execute: First 25 Fibbonaci numbers"],
|
271 |
+
["Get today's date, then generate a chart using stock data, showing YTD gain for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'"]
|
272 |
],
|
273 |
cache_examples=False,
|
274 |
).launch()
|