namb0010 commited on
Commit
7c30791
·
1 Parent(s): 7b1ea1d

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -44
app.py DELETED
@@ -1,44 +0,0 @@
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
- text = st.text_input('What attributes do you want in a hotel:')
22
-
23
- n_results = st.slider('How many choices in hotels do you want?', 1,5,8)
24
-
25
- dataurl = 'https://colab.research.google.com/drive/1_sofOjXRDnId49NOup4sdiVS1E_51T-b?usp=sharing'
26
- @st.cache(persist=True)
27
-
28
- def load_data():
29
- data_url = urllib.request.urlopen('https://colab.research.google.com/drive/1_sofOjXRDnId49NOup4sdiVS1E_51T-b?usp=sharing')
30
- df = pd.read_csv('HotelListInBarcelona__en2019100120191005.csv')
31
- return(df)
32
- if st.button('Show Hotels'):
33
- if len(text) >50:
34
- st.write('Okay boomer, try to limit your expectations and reduce the number of characters in your search')
35
-
36
- def run():
37
- st.subheader("Options for hotels in Barcelona")
38
- df = load_data()
39
- st.dataframe(df)
40
-
41
- if __name__ == '__main__':
42
- run()
43
- !pip freeze > requirements.txt
44
-