poemsforaphrodite commited on
Commit
501a450
1 Parent(s): e8feae8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -580,12 +580,15 @@ def show_paginated_dataframe(report, rows_per_page=20):
580
  parsed_url = urllib.parse.urlparse(url)
581
  base_url = f"{parsed_url.scheme}://{parsed_url.netloc}"
582
  path = parsed_url.path
 
 
583
  if len(base_url) + len(path) > max_length:
584
  return base_url + path[:max_length - len(base_url) - 3] + '...'
585
  return base_url + path
586
 
587
  def make_clickable(url):
588
  truncated_url = truncate_url(url)
 
589
  return f'<a href="{url}" target="_blank">{truncated_url}</a>'
590
 
591
  report['page'] = report['page'].apply(make_clickable)
 
580
  parsed_url = urllib.parse.urlparse(url)
581
  base_url = f"{parsed_url.scheme}://{parsed_url.netloc}"
582
  path = parsed_url.path
583
+ print(base_url)
584
+ print(path)
585
  if len(base_url) + len(path) > max_length:
586
  return base_url + path[:max_length - len(base_url) - 3] + '...'
587
  return base_url + path
588
 
589
  def make_clickable(url):
590
  truncated_url = truncate_url(url)
591
+ print(truncated_url)
592
  return f'<a href="{url}" target="_blank">{truncated_url}</a>'
593
 
594
  report['page'] = report['page'].apply(make_clickable)