Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -77,15 +77,15 @@ def predict_and_plot(week1, week2, week3, week4):
|
|
77 |
|
78 |
return predicted_value, img_tag
|
79 |
|
80 |
-
inputs = [gr.
|
81 |
-
gr.
|
82 |
-
gr.
|
83 |
-
gr.
|
84 |
-
outputs = [gr.
|
85 |
-
gr.
|
86 |
|
87 |
gr.Interface(fn=predict_and_plot,
|
88 |
inputs=inputs,
|
89 |
outputs=outputs,
|
90 |
title="LSTM Model Prediction",
|
91 |
-
description="Enter the total kilometers for the last 4 weeks to get the prediction for the next week along with a plot.").launch()
|
|
|
77 |
|
78 |
return predicted_value, img_tag
|
79 |
|
80 |
+
inputs = [gr.Number(label='Week -4'),
|
81 |
+
gr.Number(label='Week -3'),
|
82 |
+
gr.Number(label='Week -2'),
|
83 |
+
gr.Number(label='Week -1')]
|
84 |
+
outputs = [gr.Textbox(label='Predicted Week'),
|
85 |
+
gr.HTML(label='Plot')]
|
86 |
|
87 |
gr.Interface(fn=predict_and_plot,
|
88 |
inputs=inputs,
|
89 |
outputs=outputs,
|
90 |
title="LSTM Model Prediction",
|
91 |
+
description="Enter the total kilometers for the last 4 weeks to get the prediction for the next week along with a plot.").launch()
|