nelsonjq commited on
Commit
4827ea7
·
verified ·
1 Parent(s): 6ae41c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -90,6 +90,9 @@ def fetch_metadata(url):
90
  else:
91
  site_name = infer_source_from_url(url)
92
 
 
 
 
93
  # Formatting the result
94
  markdown_text = f"[{og_title}]({url}) ({site_name})"
95
  return markdown_text
 
90
  else:
91
  site_name = infer_source_from_url(url)
92
 
93
+ # Correct the site_name
94
+ site_name = correct_source_names(site_name)
95
+
96
  # Formatting the result
97
  markdown_text = f"[{og_title}]({url}) ({site_name})"
98
  return markdown_text