diff --git a/pilot/scene/chat_agent/coding/stock_price_chart.py b/pilot/scene/chat_agent/coding/stock_price_chart.py deleted file mode 100644 index 7b651972e..000000000 --- a/pilot/scene/chat_agent/coding/stock_price_chart.py +++ /dev/null @@ -1,18 +0,0 @@ -# filename: stock_price_chart.py -import yfinance as yf -import matplotlib.pyplot as plt - -# Define the ticker symbols for NVDA and TESLA -tickers = ["NVDA", "TSLA"] - -# Fetch the historical stock price data for YTD -data = yf.download(tickers, start="2021-01-01", end="2021-12-31") - -# Extract the 'Close' price column for each ticker -close_prices = data["Close"] - -# Plot the stock price change YTD -close_prices.plot(title="Stock Price Change YTD", ylabel="Price (USD)") - -# Display the chart -plt.show() diff --git a/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py b/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py index a3dd989d5..fd18f948e 100644 --- a/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py +++ b/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py @@ -62,7 +62,7 @@ class ChatExcel(BaseChat): # ] return "\n".join(f"{i+1}. {item}" for i, item in enumerate(command_strings)) - def generate_input_values(self): + async def generate_input_values(self) -> Dict: input_values = { "user_input": self.current_user_input, "table_name": self.excel_reader.table_name,