fruitpicker01 commited on
Commit
5738fc6
·
verified ·
1 Parent(s): d50ead7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -213,7 +213,7 @@ def process_data():
213
  df_history,
214
  x="ds",
215
  y="y",
216
- title="Два прогноза до конца февраля 2025 (всего)",
217
  labels={"ds": "Дата", "y": "Накопленное число SMS"}
218
  )
219
  forecast_fig.add_scatter(
@@ -230,7 +230,7 @@ def process_data():
230
  x=df_naive["ds"],
231
  y=df_naive["yhat"],
232
  mode="lines",
233
- name="Прогноз (Наивн., будни)",
234
  line=dict(dash="dash", color="green")
235
  )
236
 
@@ -243,7 +243,7 @@ with gr.Blocks() as demo:
243
  btn = gr.Button("Обновить данные и показать результат")
244
  html_output = gr.HTML(label="Прогресс-бары: количество SMS и %")
245
  plot_output = gr.Plot(label="Накопительный график по датам (Даша, Лера, Света, Всего)")
246
- forecast_output = gr.Plot(label="Сравнение прогнозов до конца февраля 2025 (всего)")
247
 
248
  btn.click(fn=process_data, outputs=[html_output, plot_output, forecast_output])
249
 
 
213
  df_history,
214
  x="ds",
215
  y="y",
216
+ title="Прогноз до конца февраля 2025 (всего)",
217
  labels={"ds": "Дата", "y": "Накопленное число SMS"}
218
  )
219
  forecast_fig.add_scatter(
 
230
  x=df_naive["ds"],
231
  y=df_naive["yhat"],
232
  mode="lines",
233
+ name="Прогноз по среднему",
234
  line=dict(dash="dash", color="green")
235
  )
236
 
 
243
  btn = gr.Button("Обновить данные и показать результат")
244
  html_output = gr.HTML(label="Прогресс-бары: количество SMS и %")
245
  plot_output = gr.Plot(label="Накопительный график по датам (Даша, Лера, Света, Всего)")
246
+ forecast_output = gr.Plot(label="Прогноз до конца февраля 2025 (всего)")
247
 
248
  btn.click(fn=process_data, outputs=[html_output, plot_output, forecast_output])
249