Reality123b commited on
Commit
f8f30d3
·
verified ·
1 Parent(s): 228739f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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", default="AAPL", interactive=True)
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():