nikhedward commited on
Commit
c83e304
1 Parent(s): db63995
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ This is an abstractive text summarizer app using fine-tuned bart-large-cnn model
30
 
31
 
32
 
33
- model_name = "nikhedward/bart-large-cnn-finetuned-multi-news"
34
  tokenizer = AutoTokenizer.from_pretrained(model_name)
35
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
36
 
@@ -42,7 +42,7 @@ def summarize(inp):
42
  return summary
43
 
44
  interface = gr.Interface(fn=summarize, inputs=gr.inputs.Textbox(lines=10, label="Input Text"), description = desc, theme = "peach",
45
- examples = sample_texts, title = title, outputs="text")
46
 
47
  interface.launch()
48
 
 
30
 
31
 
32
 
33
+ model_name = "nikhedward/bart-large-cnn-finetuned-multi-news1"
34
  tokenizer = AutoTokenizer.from_pretrained(model_name)
35
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
36
 
 
42
  return summary
43
 
44
  interface = gr.Interface(fn=summarize, inputs=gr.inputs.Textbox(lines=10, label="Input Text"), description = desc, theme = "peach",
45
+ examples = sample_texts, title = title, outputs="text", css=".footer{display:none !important}")
46
 
47
  interface.launch()
48