Alpha108 commited on
Commit
1f9eff6
·
verified ·
1 Parent(s): e78340a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -356,20 +356,19 @@ class GEOSEOApp:
356
 
357
  with st.spinner(f"Analyzing website: {website_url}"):
358
  # Parse website content
359
- pages_data = self.webpage_parser.parse_website(
360
  website_url,
361
  max_pages=max_pages,
362
  include_subpages=include_subpages
363
- )
364
-
365
  if not pages_data:
366
  st.error("Could not extract content from the website.")
367
- return
368
 
369
  st.success(f"Successfully extracted content from {len(pages_data)} page(s)")
370
 
371
  # Analyze GEO scores
372
- with st.spinner("Calculating GEO scores..."):
373
  geo_results = []
374
  for i, page_data in enumerate(pages_data):
375
  with st.spinner(f"Analyzing page {i+1}/{len(pages_data)}..."):
 
356
 
357
  with st.spinner(f"Analyzing website: {website_url}"):
358
  # Parse website content
359
+ pages_data = self.webpage_parser.parse_website(
360
  website_url,
361
  max_pages=max_pages,
362
  include_subpages=include_subpages
363
+ )
 
364
  if not pages_data:
365
  st.error("Could not extract content from the website.")
366
+ return
367
 
368
  st.success(f"Successfully extracted content from {len(pages_data)} page(s)")
369
 
370
  # Analyze GEO scores
371
+ with st.spinner("Calculating GEO scores..."):
372
  geo_results = []
373
  for i, page_data in enumerate(pages_data):
374
  with st.spinner(f"Analyzing page {i+1}/{len(pages_data)}..."):