Spaces:
Sleeping
Sleeping
zhaoxiang
commited on
Commit
•
ef26f24
1
Parent(s):
2099574
update variable name
Browse files- ez_cite.py +2 -2
ez_cite.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
TOGETHER_API_KEY = os.environ.get("TOGETHER_API_KEY")
|
3 |
-
|
4 |
import re
|
5 |
import sys
|
6 |
import time
|
@@ -103,7 +103,7 @@ def get_relevant_papers(search_query, sort=True, count=10):
|
|
103 |
# Define the paper search endpoint URL; All keywords in the search query are matched against the paper’s title and abstract.
|
104 |
url = 'https://api.semanticscholar.org/graph/v1/paper/search'
|
105 |
# Define headers with API key
|
106 |
-
headers = {'x-api-key':
|
107 |
|
108 |
query_params = {
|
109 |
'query': search_query,
|
|
|
1 |
import os
|
2 |
TOGETHER_API_KEY = os.environ.get("TOGETHER_API_KEY")
|
3 |
+
SEMANTIC_SCHOLAR_API_KEY = os.environ.get("SEMANTIC_SCHOLAR_API_KEY")
|
4 |
import re
|
5 |
import sys
|
6 |
import time
|
|
|
103 |
# Define the paper search endpoint URL; All keywords in the search query are matched against the paper’s title and abstract.
|
104 |
url = 'https://api.semanticscholar.org/graph/v1/paper/search'
|
105 |
# Define headers with API key
|
106 |
+
headers = {'x-api-key': SEMANTIC_SCHOLAR_API_KEY}
|
107 |
|
108 |
query_params = {
|
109 |
'query': search_query,
|