yunusserhat commited on
Commit
9aa9bdf
·
verified ·
1 Parent(s): 71d6f85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -201,13 +201,13 @@ def main():
201
  if page == "Home":
202
  st.write("Welcome to the Geolocation Predictor. Please select an action from the sidebar dropdown.")
203
 
204
- elif page == "Upload Images":
205
  upload_images_page()
206
 
207
- elif page == "Social Media URL":
208
  social_media_page()
209
 
210
- elif page == "Web Page URL":
211
  web_page_url_page()
212
 
213
 
@@ -232,7 +232,7 @@ def upload_images_page():
232
 
233
 
234
  def social_media_page():
235
- st.header("Social Media Image Analyser")
236
  social_media_url = st.text_input("Enter a social media URL to analyse:", key='social_media_url_input')
237
  if social_media_url:
238
  media_data = get_media(social_media_url) # Assume this function is defined elsewhere
@@ -267,7 +267,7 @@ def social_media_page():
267
 
268
 
269
  def web_page_url_page():
270
- st.header("Web Page Scraper")
271
  web_page_url = st.text_input("Enter a web page URL to scrape:", key='web_page_url_input')
272
  if web_page_url:
273
  text, images = scrape_webpage(web_page_url) # Assume this function is defined elsewhere
 
201
  if page == "Home":
202
  st.write("Welcome to the Geolocation Predictor. Please select an action from the sidebar dropdown.")
203
 
204
+ elif page == "Images":
205
  upload_images_page()
206
 
207
+ elif page == "Social Media":
208
  social_media_page()
209
 
210
+ elif page == "Web Pages":
211
  web_page_url_page()
212
 
213
 
 
232
 
233
 
234
  def social_media_page():
235
+ st.header("Social Media Analyser")
236
  social_media_url = st.text_input("Enter a social media URL to analyse:", key='social_media_url_input')
237
  if social_media_url:
238
  media_data = get_media(social_media_url) # Assume this function is defined elsewhere
 
267
 
268
 
269
  def web_page_url_page():
270
+ st.header("Web Page Analyser")
271
  web_page_url = st.text_input("Enter a web page URL to scrape:", key='web_page_url_input')
272
  if web_page_url:
273
  text, images = scrape_webpage(web_page_url) # Assume this function is defined elsewhere