Spaces:
Runtime error
Runtime error
File size: 1,280 Bytes
efe701d 6c5eb30 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# -*- coding: utf-8 -*-
"""app.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1bfEMI_uZXaosL5o-R1i1eTanG9-2hP7Y
*`Uma Namboothiripad Assignment #2`*
"""
import streamlit as st
import pandas as pd
import urllib
st.title("Plan ahead so you know where you are going once you land in Barcelona. Choose your hotel here!")
st.markdown("Barcelona has one of the highest pickpockets of any city in Europe. You better get a hotel before you go")
text = st.text_input('What attributes do you want in a hotel:')
n_results = st.slider('How many choices in hotels do you want?', 1,5,8)
dataurl = 'https://colab.research.google.com/drive/1_sofOjXRDnId49NOup4sdiVS1E_51T-b?usp=sharing'
@st.cache(persist=True)
def load_data():
data_url = urllib.request.urlopen('https://colab.research.google.com/drive/1_sofOjXRDnId49NOup4sdiVS1E_51T-b?usp=sharing')
df = pd.read_csv('HotelListInBarcelona__en2019100120191005.csv')
return(df)
if st.button('Show Hotels'):
if len(text) >50:
st.write('Okay boomer, try to limit your expectations and reduce the number of characters in your search')
def run():
st.subheader("Options for hotels in Barcelona")
df = load_data()
st.dataframe(df)
|