Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 90 |
-
high_output = gr.
|
| 91 |
-
low_output = gr.
|
| 92 |
-
recommendation_output = gr.
|
| 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")
|