jsebdev commited on
Commit
c8d4f69
·
1 Parent(s): de5eeb8
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,13 +6,13 @@ from utils import *
6
  import os
7
 
8
 
9
- days_to_plot = 50
10
 
11
  data = get_data().iloc[-500:]
12
 
13
 
14
  data_to_plot = data.iloc[-days_to_plot:][["Close"]]
15
- data_to_plot['date'] = data_to_plot.index
16
 
17
  with gr.Blocks() as demo:
18
  gr.Markdown("# Apple Predictor")
@@ -36,7 +36,7 @@ with gr.Blocks() as demo:
36
  value_plot = gr.LinePlot(data_to_plot,
37
  x="date",
38
  y="Close",
39
- label=f'Last {days_to_plot} days',
40
  y_lim=[float(data_to_plot['Close'].min())-5, float(data_to_plot['Close'].max())+5])
41
 
42
  outputs = [jump_text,
 
6
  import os
7
 
8
 
9
+ days_to_plot = 40
10
 
11
  data = get_data().iloc[-500:]
12
 
13
 
14
  data_to_plot = data.iloc[-days_to_plot:][["Close"]]
15
+ data_to_plot['date'] = data_to_plot.index.strftime('%Y-%m-%d')
16
 
17
  with gr.Blocks() as demo:
18
  gr.Markdown("# Apple Predictor")
 
36
  value_plot = gr.LinePlot(data_to_plot,
37
  x="date",
38
  y="Close",
39
+ title=f'Last {days_to_plot} days',
40
  y_lim=[float(data_to_plot['Close'].min())-5, float(data_to_plot['Close'].max())+5])
41
 
42
  outputs = [jump_text,