pritamdeka commited on
Commit
1b84dcb
Β·
1 Parent(s): d175901

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -59,12 +59,7 @@ def remove_stopwords(sen):
59
  sen_new = " ".join([i for i in sen if i not in stop_words])
60
  return sen_new
61
 
62
- examples = [
63
- ["https://www.medicalnewstoday.com/articles/alzheimers-addressing-sleep-disturbance-may-alleviate-symptoms"],
64
- ["https://www.medicalnewstoday.com/articles/omicron-what-do-we-know-about-the-stealth-variant"],
65
- ["https://www.cancer.news/2022-02-04-doctors-testifying-covid-vaccines-causing-cancer-aids.html#",
66
- ["https://www.cancer.news/2021-12-22-mrna-vaccines-weaken-immune-system-cause-cancer.html"]
67
- ]
68
 
69
 
70
  def keyphrase_generator(article_link, model_1, model_2, max_num_keywords, model_3, max_retrieved, model_4):
@@ -276,6 +271,12 @@ def keyphrase_generator(article_link, model_1, model_2, max_num_keywords, model_
276
  return df_final
277
 
278
 
 
 
 
 
 
 
279
  igen_pubmed = gr.Interface(keyphrase_generator,
280
  inputs=[gr.inputs.Textbox(lines=1, placeholder="Provide article web link here (Can be chosen from examples below)",default="", label="Article web link"),
281
  gr.inputs.Dropdown(choices=['sentence-transformers/all-mpnet-base-v2',
 
59
  sen_new = " ".join([i for i in sen if i not in stop_words])
60
  return sen_new
61
 
62
+
 
 
 
 
 
63
 
64
 
65
  def keyphrase_generator(article_link, model_1, model_2, max_num_keywords, model_3, max_retrieved, model_4):
 
271
  return df_final
272
 
273
 
274
+ examples = [
275
+ ["https://www.medicalnewstoday.com/articles/alzheimers-addressing-sleep-disturbance-may-alleviate-symptoms"],
276
+ ["https://www.medicalnewstoday.com/articles/omicron-what-do-we-know-about-the-stealth-variant"],
277
+ ["https://www.cancer.news/2022-02-04-doctors-testifying-covid-vaccines-causing-cancer-aids.html#",
278
+ ["https://www.cancer.news/2021-12-22-mrna-vaccines-weaken-immune-system-cause-cancer.html"]]
279
+
280
  igen_pubmed = gr.Interface(keyphrase_generator,
281
  inputs=[gr.inputs.Textbox(lines=1, placeholder="Provide article web link here (Can be chosen from examples below)",default="", label="Article web link"),
282
  gr.inputs.Dropdown(choices=['sentence-transformers/all-mpnet-base-v2',