jackkuo commited on
Commit
b081506
·
verified ·
1 Parent(s): 2a0dd8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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'{instructions} "{formatted_text}"'}],
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;'>An LLM-based search and summary tool from biorxiv and 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,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: center; 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>
 
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>