Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,9 +28,13 @@ def load_data():
|
|
28 |
data_url = urllib.request.urlopen('https://colab.research.google.com/drive/1_sofOjXRDnId49NOup4sdiVS1E_51T-b?usp=sharing')
|
29 |
df = pd.read_csv('HotelListInBarcelona__en2019100120191005.csv')
|
30 |
return(df)
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
34 |
|
35 |
def run():
|
36 |
st.subheader("Options for hotels in Barcelona")
|
|
|
28 |
data_url = urllib.request.urlopen('https://colab.research.google.com/drive/1_sofOjXRDnId49NOup4sdiVS1E_51T-b?usp=sharing')
|
29 |
df = pd.read_csv('HotelListInBarcelona__en2019100120191005.csv')
|
30 |
return(df)
|
31 |
+
if st.button('Show Hotels'):
|
32 |
+
if len(text) >500:
|
33 |
+
st.write('Okay boomer, try to limit your expectations and reduce the number of characters in your search')
|
34 |
+
if disp_head=="Head":
|
35 |
+
st.dataframe(df.head())
|
36 |
+
else:
|
37 |
+
st.dataframe(df)
|
38 |
|
39 |
def run():
|
40 |
st.subheader("Options for hotels in Barcelona")
|