Spaces:
Sleeping
Sleeping
Commit
·
466c476
1
Parent(s):
c38b160
Strip whitespace from positive_arxiv_ids list.
Browse files
app.py
CHANGED
|
@@ -87,6 +87,8 @@ def get_papers(
|
|
| 87 |
raise gr.Error("You must enter at least one ArXiv ID")
|
| 88 |
hf_user_name = hf_user_name.preferred_username
|
| 89 |
positive_arxiv_ids = positive_arxiv_ids.split(",")
|
|
|
|
|
|
|
| 90 |
potential_authors = query_author(author_name)
|
| 91 |
if not potential_authors:
|
| 92 |
raise gr.Error("No authors found with that name")
|
|
|
|
| 87 |
raise gr.Error("You must enter at least one ArXiv ID")
|
| 88 |
hf_user_name = hf_user_name.preferred_username
|
| 89 |
positive_arxiv_ids = positive_arxiv_ids.split(",")
|
| 90 |
+
# strip whitespace
|
| 91 |
+
positive_arxiv_ids = [arxiv_id.strip() for arxiv_id in positive_arxiv_ids]
|
| 92 |
potential_authors = query_author(author_name)
|
| 93 |
if not potential_authors:
|
| 94 |
raise gr.Error("No authors found with that name")
|