gaetanbrison commited on
Commit
a721ba6
·
verified ·
1 Parent(s): 99cc6f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def format_doi_url(doi):
36
  """Format the DOI as a proper AEA web link."""
37
  return f"https://www.aeaweb.org/articles?id={doi}"
38
 
39
- def analyze_keywords(question, threshold=0.2):
40
  # Check if the required columns exist
41
  if not all(col in df.columns for col in ["Title", "doi", "top_topics", "top_keywords"]):
42
  return "The dataset must have 'Title', 'doi', 'top_topics', and 'top_keywords' columns."
 
36
  """Format the DOI as a proper AEA web link."""
37
  return f"https://www.aeaweb.org/articles?id={doi}"
38
 
39
+ def analyze_keywords(question, threshold=0.15):
40
  # Check if the required columns exist
41
  if not all(col in df.columns for col in ["Title", "doi", "top_topics", "top_keywords"]):
42
  return "The dataset must have 'Title', 'doi', 'top_topics', and 'top_keywords' columns."