Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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."
|