Roberta2024 commited on
Commit
de06db8
·
verified ·
1 Parent(s): a01bf12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -97,6 +97,10 @@ if st.button("Fetch Restaurant Data"):
97
  csv_file = "restaurants_data.csv"
98
  df.to_csv(csv_file, encoding="utf-8-sig", index=False)
99
 
 
 
 
 
100
  # Display download button for the CSV
101
  st.download_button(
102
  label="Download restaurant data as CSV",
@@ -159,8 +163,3 @@ if st.button("Fetch Restaurant Data"):
159
 
160
  # Display the map in Streamlit
161
  st.components.v1.html(m._repr_html_(), height=600)
162
-
163
- # Optional: Display the DataFrame as a table
164
- st.subheader("Restaurant Data")
165
- st.dataframe(df)
166
- #
 
97
  csv_file = "restaurants_data.csv"
98
  df.to_csv(csv_file, encoding="utf-8-sig", index=False)
99
 
100
+ # Display the DataFrame as a table at the top
101
+ st.subheader("Restaurant Data")
102
+ st.dataframe(df)
103
+
104
  # Display download button for the CSV
105
  st.download_button(
106
  label="Download restaurant data as CSV",
 
163
 
164
  # Display the map in Streamlit
165
  st.components.v1.html(m._repr_html_(), height=600)