Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -120,10 +120,14 @@ def plot_candlestick(data, symbol, timeframe, predicted_price=None):
|
|
120 |
|
121 |
def main():
|
122 |
"""Gradio Interface."""
|
|
|
|
|
|
|
|
|
123 |
with gr.Blocks() as interface:
|
124 |
gr.Markdown("## Real-time Stock Market Analysis")
|
125 |
with gr.Row():
|
126 |
-
symbol_input = gr.Textbox(label="Symbol",
|
127 |
timeframe_input = gr.Dropdown(label="Timeframe", choices=["1m", "5m", "15m", "30m", "1h", "1d"], value="1d", interactive=True)
|
128 |
|
129 |
with gr.Row():
|
|
|
120 |
|
121 |
def main():
|
122 |
"""Gradio Interface."""
|
123 |
+
|
124 |
+
symbol = gr.Textbox(label="Symbol", default="AAPL") # Default as positional argument
|
125 |
+
timeframe = gr.Dropdown(label="Timeframe", choices=["1m", "5m", "15m", "30m", "1h", "1d"], value="1d")
|
126 |
+
|
127 |
with gr.Blocks() as interface:
|
128 |
gr.Markdown("## Real-time Stock Market Analysis")
|
129 |
with gr.Row():
|
130 |
+
symbol_input = gr.Textbox(label="Symbol", "AAPL", interactive=True) # Default as positional argument
|
131 |
timeframe_input = gr.Dropdown(label="Timeframe", choices=["1m", "5m", "15m", "30m", "1h", "1d"], value="1d", interactive=True)
|
132 |
|
133 |
with gr.Row():
|