colonelwatch commited on
Commit
b37a6fe
·
1 Parent(s): c4788e3

Add a better reference to the model and the date of the dataset to the description

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -293,15 +293,19 @@ def main():
293
  significand = round(significand, 1 if (n_digits % 3 == 1) else None)
294
  quantity = str(significand) + postfix
295
 
 
 
 
 
296
  gr.Markdown("# abstracts-index")
297
  gr.Markdown(
298
  f"Explore {quantity} academic publications selected from the "
299
- "[OpenAlex](https://openalex.org) dataset. This project is an index of the "
300
- "embeddings generated from their titles and abstracts. The embeddings were "
301
- f"generated using the {model_name} model provided by the "
302
- "[sentence-transformers](https://www.sbert.net/) module, and the index was "
303
- "built using the [faiss](https://github.com/facebookresearch/faiss) "
304
- "module. The build scripts and more information available at the main repo "
305
  "[abstracts-search](https://github.com/colonelwatch/abstracts-search) on "
306
  "Github."
307
  )
 
293
  significand = round(significand, 1 if (n_digits % 3 == 1) else None)
294
  quantity = str(significand) + postfix
295
 
296
+ # split the (huggingface) model name and get the link
297
+ model_publisher, model_human_name = model_name.split("/")
298
+ model_link = f"https://huggingface.co/{model_publisher}/{model_human_name}"
299
+
300
  gr.Markdown("# abstracts-index")
301
  gr.Markdown(
302
  f"Explore {quantity} academic publications selected from the "
303
+ "[OpenAlex](https://openalex.org) dataset (as of January 1st, 2025). This "
304
+ "project is an index of the embeddings generated from their titles and "
305
+ "abstracts. The embeddings were generated using the "
306
+ f"[{model_human_name}]({model_link}) model, and the index was built using "
307
+ "the [faiss](https://github.com/facebookresearch/faiss) module. The build "
308
+ "scripts and more information available at the main repo "
309
  "[abstracts-search](https://github.com/colonelwatch/abstracts-search) on "
310
  "Github."
311
  )