Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -148,6 +148,7 @@ def save_csv(file_name):
|
|
| 148 |
with gr.Blocks(fill_height=True) as demo:
|
| 149 |
# Create the first panel (visible from the start)
|
| 150 |
with gr.Column(visible=True) as panel_1:
|
|
|
|
| 151 |
user_text = gr.Textbox(label="User name:", placeholder="Type here...", scale=0)
|
| 152 |
input_text = gr.Textbox(label="Password:", placeholder="Type here...", scale=0, type="password")
|
| 153 |
|
|
@@ -157,6 +158,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 157 |
|
| 158 |
with gr.Column(visible=False) as panel_2:
|
| 159 |
#m = gr.Markdown()
|
|
|
|
| 160 |
with gr.Row():
|
| 161 |
# demo.load(update_message, None, gr.Markdown())
|
| 162 |
# logout_button = gr.Button("Logout", link="/logout", scale=0)
|
|
@@ -167,7 +169,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 167 |
with gr.Row():
|
| 168 |
start_input = gr.Textbox(label="Start Date:", placeholder="Enter date (e.g., 2023-09-01)", max_lines=1)
|
| 169 |
prediction_input = gr.Text(label="Month Prediction:", placeholder="Enter date (e.g., 2024-10-31)", max_lines=1)
|
| 170 |
-
range_input = gr.Slider(
|
| 171 |
|
| 172 |
table_ = gr.DataFrame(value=df, label="Predictions (consult 'revenue' column):")
|
| 173 |
btn_update = gr.Button("Run Forecast")
|
|
|
|
| 148 |
with gr.Blocks(fill_height=True) as demo:
|
| 149 |
# Create the first panel (visible from the start)
|
| 150 |
with gr.Column(visible=True) as panel_1:
|
| 151 |
+
gr.HTML(f"<h1>Forecast UI</h1>")
|
| 152 |
user_text = gr.Textbox(label="User name:", placeholder="Type here...", scale=0)
|
| 153 |
input_text = gr.Textbox(label="Password:", placeholder="Type here...", scale=0, type="password")
|
| 154 |
|
|
|
|
| 158 |
|
| 159 |
with gr.Column(visible=False) as panel_2:
|
| 160 |
#m = gr.Markdown()
|
| 161 |
+
gr.HTML(f"<h1>Forecast UI</h1>")
|
| 162 |
with gr.Row():
|
| 163 |
# demo.load(update_message, None, gr.Markdown())
|
| 164 |
# logout_button = gr.Button("Logout", link="/logout", scale=0)
|
|
|
|
| 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")
|