Spaces:
Running
Running
app
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🏢
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: gray
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Example for IS445
|
| 3 |
emoji: 🏢
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: gray
|
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import streamlit as st
|
|
| 10 |
import altair as alt
|
| 11 |
from vega_datasets import data
|
| 12 |
|
| 13 |
-
st.title('Streamlit App
|
| 14 |
|
| 15 |
st.text("The URL for this app is: https://huggingface.co/spaces/jnaiman/is445_demo")
|
| 16 |
|
|
@@ -33,7 +33,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 +63,7 @@ bars = (
|
|
| 63 |
.add_params(click)
|
| 64 |
)
|
| 65 |
|
| 66 |
-
chart = alt.vconcat(points, bars, data=source, title="Seattle Weather -
|
| 67 |
|
| 68 |
tab1, tab2 = st.tabs(["Streamlit theme (default)", "Altair native theme"])
|
| 69 |
|
|
|
|
| 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 |
|
|
|
|
| 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 |
.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 |
|