area444 commited on
Commit
e462bb3
·
verified ·
1 Parent(s): 5f414ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -167,9 +167,15 @@ with gr.Blocks(fill_height=True) as demo:
167
  btn_2 = gr.Button("Logout", visible=True, scale=0)
168
  btn_2.click(hide_and_show_panel, outputs=[panel_2, panel_1, user_text, input_text]) # Hide Panel 2 and show Panel 1
169
  with gr.Row():
170
- start_input = gr.Textbox(label="Start Date:", placeholder="Enter date (e.g., 2023-09-01)", max_lines=1)
171
- prediction_input = gr.Text(label="Month Prediction:", placeholder="Enter date (e.g., 2024-10-31)", max_lines=1)
172
- range_input = gr.Slider(3, 10, 6, label="Window / Moving Average Period")
 
 
 
 
 
 
173
 
174
  table_ = gr.DataFrame(value=df, label="Predictions (consult 'revenue' column):")
175
  btn_update = gr.Button("Run Forecast")
 
167
  btn_2 = gr.Button("Logout", visible=True, scale=0)
168
  btn_2.click(hide_and_show_panel, outputs=[panel_2, panel_1, user_text, input_text]) # Hide Panel 2 and show Panel 1
169
  with gr.Row():
170
+ with gr.Column:
171
+ start_input = gr.Textbox(label="Start Date:", placeholder="Enter date (e.g., 2023-09-01)", max_lines=1)
172
+ gr.Markdown("### Po")
173
+ with gr.Column:
174
+ prediction_input = gr.Text(label="Month Prediction:", placeholder="Enter date (e.g., 2024-10-31)", max_lines=1)
175
+ gr.Markdown("### Po")
176
+ with gr.Column:
177
+ range_input = gr.Slider(3, 10, 6, label="Window / Moving Average Period")
178
+ gr.Markdown("#### * Window = 3: With a 3-period window, the predictive model reacts more quickly to recent monthly payment fluctuations, but it may also include more noise and false signals. <br>* Window = 12: With a 12-period window, the predictive model adjusts more slowly and is less sensitive to small fluctuations, making it more reliable, but also slower to react to sharp changes.")
179
 
180
  table_ = gr.DataFrame(value=df, label="Predictions (consult 'revenue' column):")
181
  btn_update = gr.Button("Run Forecast")