Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,8 +40,8 @@ def plot_stock_data(ticker, period):
|
|
40 |
|
41 |
interface = gr.Interface(
|
42 |
fn=plot_stock_data,
|
43 |
-
inputs=["text", gr.
|
44 |
-
outputs=gr.
|
45 |
title="Historical Stock Data Visualization",
|
46 |
description="Visualize historical stock data with candlestick graphs, including dynamically adjusted moving averages and dividend events."
|
47 |
)
|
|
|
40 |
|
41 |
interface = gr.Interface(
|
42 |
fn=plot_stock_data,
|
43 |
+
inputs=["text", gr.Dropdown(['1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max'])],
|
44 |
+
outputs=gr.Plot(label="Stock Data Graph"),
|
45 |
title="Historical Stock Data Visualization",
|
46 |
description="Visualize historical stock data with candlestick graphs, including dynamically adjusted moving averages and dividend events."
|
47 |
)
|