Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -305,7 +305,7 @@ def summarize_abstract(abstract, llm_model="llama-3.1-70b-versatile", instructio
|
|
| 305 |
try:
|
| 306 |
# Create a chat completion with the abstract and specified LLM model
|
| 307 |
chat_completion = client.chat.completions.create(
|
| 308 |
-
messages=[{"role": "user", "content": f'{
|
| 309 |
model="gpt-4o-mini",
|
| 310 |
)
|
| 311 |
except Exception as e: # Catch the exception
|
|
@@ -361,7 +361,7 @@ def logo(db_update_date, db_size_bio, db_size_med):
|
|
| 361 |
</div>
|
| 362 |
</div>
|
| 363 |
<div style='text-align: center; margin-top: 10px;'>
|
| 364 |
-
<h3 style='color: black;'>
|
| 365 |
</div>
|
| 366 |
<p>How to use:
|
| 367 |
<br><strong>1</strong>: Enter your search query (Optional modification "Number of results to show")
|
|
@@ -369,7 +369,7 @@ def logo(db_update_date, db_size_bio, db_size_med):
|
|
| 369 |
<br><strong>3</strong>: Enter summary prompt in the below input box.
|
| 370 |
<br><strong>4</strong>: Click "AI summary" to summarize the search results above.
|
| 371 |
</p>
|
| 372 |
-
<div style='text-align:
|
| 373 |
Last database update: {db_update_date}; Database size: bioRxiv: {db_size_bio} / medRxiv: {db_size_med} entries
|
| 374 |
</div>
|
| 375 |
<br>
|
|
|
|
| 305 |
try:
|
| 306 |
# Create a chat completion with the abstract and specified LLM model
|
| 307 |
chat_completion = client.chat.completions.create(
|
| 308 |
+
messages=[{"role": "user", "content": f'"{formatted_text}" {instructions}'}],
|
| 309 |
model="gpt-4o-mini",
|
| 310 |
)
|
| 311 |
except Exception as e: # Catch the exception
|
|
|
|
| 361 |
</div>
|
| 362 |
</div>
|
| 363 |
<div style='text-align: center; margin-top: 10px;'>
|
| 364 |
+
<h3 style='color: black;'>LLM-based search and summary tool for bioRxiv & medRxiv</h3>
|
| 365 |
</div>
|
| 366 |
<p>How to use:
|
| 367 |
<br><strong>1</strong>: Enter your search query (Optional modification "Number of results to show")
|
|
|
|
| 369 |
<br><strong>3</strong>: Enter summary prompt in the below input box.
|
| 370 |
<br><strong>4</strong>: Click "AI summary" to summarize the search results above.
|
| 371 |
</p>
|
| 372 |
+
<div style='text-align: left; margin-top: 10px;'>
|
| 373 |
Last database update: {db_update_date}; Database size: bioRxiv: {db_size_bio} / medRxiv: {db_size_med} entries
|
| 374 |
</div>
|
| 375 |
<br>
|