Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def search_semantic_scholar(query: str,
|
|
| 101 |
"query": query,
|
| 102 |
"minCitationCount": str(minCitationCount),
|
| 103 |
"fields": "title,abstract,year,url", # Always return these fields (paperId is always returned)
|
| 104 |
-
"limit":
|
| 105 |
}
|
| 106 |
if year:
|
| 107 |
params["year"] = year
|
|
@@ -122,7 +122,7 @@ final_answer = FinalAnswerTool()
|
|
| 122 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 123 |
|
| 124 |
model = HfApiModel(
|
| 125 |
-
max_tokens=
|
| 126 |
temperature=0.5,
|
| 127 |
#model_id='Qwen/Qwen2.5-Coder-32B-Instruct', # it is possible that this model may be overloaded
|
| 128 |
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
|
|
|
| 101 |
"query": query,
|
| 102 |
"minCitationCount": str(minCitationCount),
|
| 103 |
"fields": "title,abstract,year,url", # Always return these fields (paperId is always returned)
|
| 104 |
+
"limit": 20
|
| 105 |
}
|
| 106 |
if year:
|
| 107 |
params["year"] = year
|
|
|
|
| 122 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 123 |
|
| 124 |
model = HfApiModel(
|
| 125 |
+
max_tokens=4192,
|
| 126 |
temperature=0.5,
|
| 127 |
#model_id='Qwen/Qwen2.5-Coder-32B-Instruct', # it is possible that this model may be overloaded
|
| 128 |
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|