ralate2 commited on
Commit
b9bd9fa
·
1 Parent(s): 64d50ce

uploading changes to template

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -5,14 +5,15 @@
5
  # 4. Open a Simple Browswer with View --> Command Palette --> Simple Browser: Show
6
  # 5. use the URL from prior steps as intput into this simple browser
7
 
 
8
 
9
  import streamlit as st
10
  import altair as alt
11
  from vega_datasets import data
12
 
13
- st.title('My First Streamlit App')
14
 
15
- st.text("The URL for this app is: https://huggingface.co/spaces/jnaiman/is445_demo")
16
 
17
  source = data.seattle_weather()
18
 
@@ -33,7 +34,7 @@ points = (
33
  alt.Chart()
34
  .mark_point()
35
  .encode(
36
- alt.X("monthdate(date):T", title="Date"),
37
  alt.Y(
38
  "temp_max:Q",
39
  title="Maximum Daily Temperature (C)",
@@ -63,7 +64,7 @@ bars = (
63
  .add_params(click)
64
  )
65
 
66
- chart = alt.vconcat(points, bars, data=source, title="Seattle Weather: 2012-2015")
67
 
68
  tab1, tab2 = st.tabs(["Streamlit theme (default)", "Altair native theme"])
69
 
 
5
  # 4. Open a Simple Browswer with View --> Command Palette --> Simple Browser: Show
6
  # 5. use the URL from prior steps as intput into this simple browser
7
 
8
+ # My IS445 Example ID19905
9
 
10
  import streamlit as st
11
  import altair as alt
12
  from vega_datasets import data
13
 
14
+ st.title("Streamlit App for IS445: ID19905")
15
 
16
+ st.text("The URL for this app is: https://huggingface.co/spaces/ralate2/is445_demo")
17
 
18
  source = data.seattle_weather()
19
 
 
34
  alt.Chart()
35
  .mark_point()
36
  .encode(
37
+ alt.X("monthdate(date):T", title="Date (Month Year)"),
38
  alt.Y(
39
  "temp_max:Q",
40
  title="Maximum Daily Temperature (C)",
 
64
  .add_params(click)
65
  )
66
 
67
+ chart = alt.vconcat(points, bars, data=source, title="Seattle Weather - 2000 to 2001")
68
 
69
  tab1, tab2 = st.tabs(["Streamlit theme (default)", "Altair native theme"])
70