madankn79 commited on
Commit
daec533
·
1 Parent(s): d10f2dd
Files changed (1) hide show
  1. app.py +3 -17
app.py CHANGED
@@ -12,28 +12,14 @@ stop_words = set(stopwords.words('english'))
12
 
13
  # Model choices
14
  model_choices = {
15
- "Pegasus (google/pegasus-xsum)": "google/pegasus-xsum",
16
- "BigBird-Pegasus (google/bigbird-pegasus-large-arxiv)": "google/bigbird-pegasus-large-arxiv",
17
- "LongT5 Large (google/long-t5-tglobal-large)": "google/long-t5-tglobal-large",
18
- "BART Large CNN (facebook/bart-large-cnn)": "facebook/bart-large-cnn",
19
- "ProphetNet (microsoft/prophetnet-large-uncased-cnndm)": "microsoft/prophetnet-large-uncased-cnndm",
20
- "LED (allenai/led-base-16384)": "allenai/led-base-16384",
21
- "T5 Large (t5-large)": "t5-large",
22
- "Flan-T5 Large (google/flan-t5-large)": "google/flan-t5-large",
23
  "DistilBART CNN (sshleifer/distilbart-cnn-12-6)": "sshleifer/distilbart-cnn-12-6",
24
- "DistilBART XSum (mrm8488/distilbart-xsum-12-6)": "mrm8488/distilbart-xsum-12-6",
25
  "T5 Base (t5-base)": "t5-base",
26
  "Flan-T5 Base (google/flan-t5-base)": "google/flan-t5-base",
27
- "BART CNN SamSum (philschmid/bart-large-cnn-samsum)": "philschmid/bart-large-cnn-samsum",
28
- "T5 SamSum (knkarthick/pegasus-samsum)": "knkarthick/pegasus-samsum",
29
- "LongT5 Base (google/long-t5-tglobal-base)": "google/long-t5-tglobal-base",
30
- "T5 Small (t5-small)": "t5-small",
31
- "MBART (facebook/mbart-large-cc25)": "facebook/mbart-large-cc25",
32
- "MarianMT (Helsinki-NLP/opus-mt-en-ro)": "Helsinki-NLP/opus-mt-en-ro",
33
- "Falcon Instruct (tiiuae/falcon-7b-instruct)": "tiiuae/falcon-7b-instruct",
34
- "BART ELI5 (yjernite/bart_eli5)": "yjernite/bart_eli5"
35
  }
36
 
 
37
  model_cache = {}
38
 
39
  def clean_text(input_text):
 
12
 
13
  # Model choices
14
  model_choices = {
 
 
 
 
 
 
 
 
15
  "DistilBART CNN (sshleifer/distilbart-cnn-12-6)": "sshleifer/distilbart-cnn-12-6",
16
+ "T5 Small (t5-small)": "t5-small",
17
  "T5 Base (t5-base)": "t5-base",
18
  "Flan-T5 Base (google/flan-t5-base)": "google/flan-t5-base",
19
+ "DistilBART XSum (mrm8488/distilbart-xsum-12-6)": "mrm8488/distilbart-xsum-12-6"
 
 
 
 
 
 
 
20
  }
21
 
22
+
23
  model_cache = {}
24
 
25
  def clean_text(input_text):