jvedsaqib commited on
Commit
7f6436c
·
verified ·
1 Parent(s): 90becd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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.inputs.Number(label='Week -4'),
81
- gr.inputs.Number(label='Week -3'),
82
- gr.inputs.Number(label='Week -2'),
83
- gr.inputs.Number(label='Week -1')]
84
- outputs = [gr.outputs.Textbox(label='Predicted Week'),
85
- gr.outputs.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()
 
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()