gauri-sharan commited on
Commit
23dae7d
·
verified ·
1 Parent(s): a6a4e98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -24,15 +24,16 @@ def create_gradio_interface():
24
  historical_output = gr.Dataframe(label="Historical Data (1 Year)")
25
  financials_output = gr.Dataframe(label="Financials")
26
  actions_output = gr.Dataframe(label="Stock Actions")
 
27
 
28
- # Define the Gradio interface
29
  interface = gr.Interface(
30
  fn=fetch_stock_data,
31
- inputs=ticker_input,
32
  outputs=[historical_output, financials_output, actions_output],
33
- live=True,
34
  title="Stock Data Fetcher",
35
- description="Enter a ticker symbol to fetch historical data, financials, and stock actions."
36
  )
37
 
38
  # Launch the interface
 
24
  historical_output = gr.Dataframe(label="Historical Data (1 Year)")
25
  financials_output = gr.Dataframe(label="Financials")
26
  actions_output = gr.Dataframe(label="Stock Actions")
27
+ submit_button = gr.Button("Submit")
28
 
29
+ # Define the Gradio interface with explicit submit button
30
  interface = gr.Interface(
31
  fn=fetch_stock_data,
32
+ inputs=[ticker_input, submit_button],
33
  outputs=[historical_output, financials_output, actions_output],
34
+ live=False, # Disable live updates
35
  title="Stock Data Fetcher",
36
+ description="Enter a ticker symbol and click 'Submit' to fetch historical data, financials, and stock actions."
37
  )
38
 
39
  # Launch the interface