kevinhug commited on
Commit
204fe88
·
1 Parent(s): da9cbbc
Files changed (2) hide show
  1. app.py +7 -4
  2. data.pkl +2 -2
app.py CHANGED
@@ -10,14 +10,16 @@ https://hits.seeyoufarm.com/
10
  '''
11
  TIME SERIES ANALYTICS
12
  '''
13
- import yfinance as yf
14
  import pandas as pd
15
- from sklearn.preprocessing import StandardScaler
16
  import plotly.express as px
17
 
18
  def trend(t):
19
  '''
20
- data = pd.read_pickle("data.pkl") # yf.download(t, period="3mo")
 
 
21
 
22
  for c in t.split(' '):
23
  q=data.loc[:,('Close',c)]
@@ -33,6 +35,7 @@ def trend(t):
33
  '''
34
  d=pd.read_pickle("data.pkl")
35
  '''
 
36
  fig = px.line(df, x="day", y=countries)
37
  fig.update_layout(
38
  title="Outbreak in " + month,
@@ -229,7 +232,7 @@ Use Case:
229
 
230
  """)
231
  with gr.Tab("Trading Analyics"):
232
- in_ts = gr.Textbox(placeholder="QQQM CIF VEGI PJP",
233
  label="Ticker",
234
  info="Identify Industry Trend, (top right is grow trending)"
235
  )
 
10
  '''
11
  TIME SERIES ANALYTICS
12
  '''
13
+
14
  import pandas as pd
15
+
16
  import plotly.express as px
17
 
18
  def trend(t):
19
  '''
20
+ import yfinance as yf
21
+ from sklearn.preprocessing import StandardScaler
22
+ data = yf.download(t, period="3mo")
23
 
24
  for c in t.split(' '):
25
  q=data.loc[:,('Close',c)]
 
35
  '''
36
  d=pd.read_pickle("data.pkl")
37
  '''
38
+ https://www.gradio.app/docs/plot
39
  fig = px.line(df, x="day", y=countries)
40
  fig.update_layout(
41
  title="Outbreak in " + month,
 
232
 
233
  """)
234
  with gr.Tab("Trading Analyics"):
235
+ in_ts = gr.Textbox(placeholder="XLE XLV XLY XLK XLF XLP XLI XLRE XLU",
236
  label="Ticker",
237
  info="Identify Industry Trend, (top right is grow trending)"
238
  )
data.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:db909946dbc190d5fe4891508cae4b500f3633990eff6133b57a08288265a1a1
3
- size 857
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b70f00b9653d4031096886ecfb6f206070c48026f56ab24fb5f28e12b874d722
3
+ size 966