Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -179,12 +179,12 @@ with gr.Blocks(fill_height=True) as demo:
|
|
179 |
prediction_input = gr.Text(label="Month Prediction:", placeholder="Enter date (e.g., 2024-10-31)", max_lines=1)
|
180 |
gr.Markdown("Case creation month to predict its revenue.")
|
181 |
with gr.Column():
|
182 |
-
range_input = gr.Slider(3, 12, 6, label="Window / Moving Average Period")
|
183 |
gr.Markdown("Window = 3-period/months, the predictive model reacts more quickly to recent monthly payment fluctuations, but it may also include more noise.<br><br>Window = 12-period/months, the Forecast adjusts more slowly and is less sensitive to small fluctuations, making it more reliable, but also slower to react to sharp changes.")
|
184 |
btn_update = gr.Button("Run Forecast")
|
185 |
-
gr.HTML(f"<
|
186 |
gr.Markdown("It's recommended to make the prediction once the selected month has passed.")
|
187 |
-
table_1 = gr.DataFrame(value=df, label="Predictions
|
188 |
#table_2 = gr.DataFrame(value=df_2, label="Forecast Inputs:")
|
189 |
btn_update.click(fn=update_table, inputs=[start_input, prediction_input, range_input, user_text], outputs=[table_1#,table_2
|
190 |
])
|
|
|
179 |
prediction_input = gr.Text(label="Month Prediction:", placeholder="Enter date (e.g., 2024-10-31)", max_lines=1)
|
180 |
gr.Markdown("Case creation month to predict its revenue.")
|
181 |
with gr.Column():
|
182 |
+
range_input = gr.Slider(3, 12, 6, step=1, label="Window / Moving Average Period")
|
183 |
gr.Markdown("Window = 3-period/months, the predictive model reacts more quickly to recent monthly payment fluctuations, but it may also include more noise.<br><br>Window = 12-period/months, the Forecast adjusts more slowly and is less sensitive to small fluctuations, making it more reliable, but also slower to react to sharp changes.")
|
184 |
btn_update = gr.Button("Run Forecast")
|
185 |
+
gr.HTML(f"<h3>Predictions</h3>")
|
186 |
gr.Markdown("It's recommended to make the prediction once the selected month has passed.")
|
187 |
+
table_1 = gr.DataFrame(value=df, label="Predictions - consult 'Prediction Revenue' column:")
|
188 |
#table_2 = gr.DataFrame(value=df_2, label="Forecast Inputs:")
|
189 |
btn_update.click(fn=update_table, inputs=[start_input, prediction_input, range_input, user_text], outputs=[table_1#,table_2
|
190 |
])
|