karthikmn commited on
Commit
b2de2af
·
verified ·
1 Parent(s): 93794b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import yfinance as yf
2
  import gradio as gr
3
  import pandas as pd
 
4
  import matplotlib.pyplot as plt
5
  import plotly.graph_objects as go
6
 
@@ -86,10 +87,10 @@ with gr.Blocks() as app:
86
 
87
  # Outputs: graph, percentage change, highest/lowest values, and recommendation
88
  graph_output = gr.Plot(label="Stock Price Prediction Graph")
89
- percent_output = gr.Text(label="Percentage Change")
90
- high_output = gr.Text(label="Highest Stock Value")
91
- low_output = gr.Text(label="Lowest Stock Value")
92
- recommendation_output = gr.Text(label="Buy/Sell Recommendation")
93
 
94
  # Predict button to trigger stock prediction
95
  predict_button = gr.Button("Predict")
 
1
  import yfinance as yf
2
  import gradio as gr
3
  import pandas as pd
4
+ from fbprophet import Prophet # Ensure fbprophet is used
5
  import matplotlib.pyplot as plt
6
  import plotly.graph_objects as go
7
 
 
87
 
88
  # Outputs: graph, percentage change, highest/lowest values, and recommendation
89
  graph_output = gr.Plot(label="Stock Price Prediction Graph")
90
+ percent_output = gr.Textbox(label="Percentage Change") # Changed to Textbox
91
+ high_output = gr.Textbox(label="Highest Stock Value") # Changed to Textbox
92
+ low_output = gr.Textbox(label="Lowest Stock Value") # Changed to Textbox
93
+ recommendation_output = gr.Textbox(label="Buy/Sell Recommendation") # Changed to Textbox
94
 
95
  # Predict button to trigger stock prediction
96
  predict_button = gr.Button("Predict")