Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -310,7 +310,7 @@ def summarize_abstract(abstract, llm_model="llama-3.1-70b-versatile", instructio
|
|
310 |
)
|
311 |
except Exception as e: # Catch the exception
|
312 |
print(f"An error occurred: {e}") # Print the error
|
313 |
-
return '
|
314 |
|
315 |
|
316 |
# Return the summarized content
|
@@ -365,7 +365,7 @@ def logo(db_update_date, db_size_bio, db_size_med):
|
|
365 |
</div>
|
366 |
<p>How to use:
|
367 |
<br><strong>1</strong>: Enter your search query (Optional modification "Number of results to show")
|
368 |
-
<br><strong>2</strong>: Click the Enter key
|
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>
|
|
|
310 |
)
|
311 |
except Exception as e: # Catch the exception
|
312 |
print(f"An error occurred: {e}") # Print the error
|
313 |
+
return 'LLM API not available or above the usage limit.'
|
314 |
|
315 |
|
316 |
# Return the summarized content
|
|
|
365 |
</div>
|
366 |
<p>How to use:
|
367 |
<br><strong>1</strong>: Enter your search query (Optional modification "Number of results to show")
|
368 |
+
<br><strong>2</strong>: Click the Enter key to preview it.
|
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>
|