Reality123b commited on
Commit
199b097
·
verified ·
1 Parent(s): ce5ac71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -121,13 +121,13 @@ def plot_candlestick(data, symbol, timeframe, predicted_price=None):
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("AAPL", label="Symbol", interactive=True) # Corrected line
131
  timeframe_input = gr.Dropdown(label="Timeframe", choices=["1m", "5m", "15m", "30m", "1h", "1d"], value="1d", interactive=True)
132
 
133
  with gr.Row():
 
121
  def main():
122
  """Gradio Interface."""
123
 
124
+ symbol_input = gr.Textbox(label="Symbol", "AAPL", interactive=True) # Default as positional argument
125
+ timeframe_input = 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)
131
  timeframe_input = gr.Dropdown(label="Timeframe", choices=["1m", "5m", "15m", "30m", "1h", "1d"], value="1d", interactive=True)
132
 
133
  with gr.Row():