Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
"""app.ipynb
|
| 3 |
+
|
| 4 |
+
Automatically generated by Colaboratory.
|
| 5 |
+
|
| 6 |
+
Original file is located at
|
| 7 |
+
https://colab.research.google.com/drive/1bfEMI_uZXaosL5o-R1i1eTanG9-2hP7Y
|
| 8 |
+
|
| 9 |
+
*`Uma Namboothiripad Assignment #2`*
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
import streamlit as st
|
| 13 |
+
import pandas as pd
|
| 14 |
+
import plotly.express as px
|
| 15 |
+
import urllib
|
| 16 |
+
|
| 17 |
+
st.title("Plan ahead so you know where you are going once you land in Barcelona. Choose your hotel here!")
|
| 18 |
+
|
| 19 |
+
st.markdown("Barcelona has one of the highest pickpockets of any city in Europe. You better get a hotel before you go")
|
| 20 |
+
|
| 21 |
+
n_results = st.slider('How many choices in hotels do you want?', 1,2, 3)
|
| 22 |
+
|
| 23 |
+
with open("barcelona.pkl", "rb") as file1:
|
| 24 |
+
df = pkl.load(file1)
|
| 25 |
+
|
| 26 |
+
if st.button('Show Hotels'):
|
| 27 |
+
st.dataframe(df)
|