Skip to content

Commit

Permalink
streamlit#558 fix bart_vs_bikes example (streamlit#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstar55 authored and tvst committed Nov 6, 2019
1 parent 84c683d commit 3a9105c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/bart_vs_bikes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

import copy
import os
from urllib.parse import urljoin
import pandas as pd
import streamlit as st

Expand All @@ -33,8 +33,8 @@

@st.cache
def from_data_file(filename):
dirname = "https://raw.githubusercontent.com/streamlit/streamlit/develop/examples/"
url = os.path.join(dirname, "data", filename)
dirname = "https://raw.githubusercontent.com/streamlit/streamlit/develop/examples/data/"
url = urljoin(dirname, filename)
return pd.read_json(url)


Expand Down

0 comments on commit 3a9105c

Please sign in to comment.