banjiola commited on
Commit
688954c
·
verified ·
1 Parent(s): b6147ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -113,7 +113,7 @@ def summarize_ner(text): # I implemented the validation step here because the mo
113
  demo = gr.Interface(fn=summarize_ner,
114
  inputs=[gr.Textbox(label="Text to Summarize and find entities",
115
  lines=10,
116
- placeholder= "Enter or Paste Text here"
117
  )],
118
  outputs=[gr.HighlightedText(label="Text with entities",
119
  show_legend=True,
@@ -126,8 +126,7 @@ demo = gr.Interface(fn=summarize_ner,
126
  <a href="https://banjiola.github.io/Olabanji-Olaniyan/"
127
  target="_blank">Olabaji Olaniyan</a>
128
  <p>This tool helps you generate quick summaries from long-form text and highlights named entities such as <mark>people</mark>, <mark>organisations</mark>, and <mark>locations</mark>. The following models were used: the <code>bart-large-cnn</code> model for text summarisation and the <code>dslim/bert-base-NER</code> model for named entity recognition.This web application is an implementation of Text Summarization and Named Entity Recognition.</p></div>
129
-
130
- <p><b><i>Click the example below to see it in action or paste your text.</b></i></p>
131
  """,
132
  flagging_mode="never",
133
  examples= [example_1, example_2],
 
113
  demo = gr.Interface(fn=summarize_ner,
114
  inputs=[gr.Textbox(label="Text to Summarize and find entities",
115
  lines=10,
116
+ placeholder= "Click the example below to see it in action or paste your text."
117
  )],
118
  outputs=[gr.HighlightedText(label="Text with entities",
119
  show_legend=True,
 
126
  <a href="https://banjiola.github.io/Olabanji-Olaniyan/"
127
  target="_blank">Olabaji Olaniyan</a>
128
  <p>This tool helps you generate quick summaries from long-form text and highlights named entities such as <mark>people</mark>, <mark>organisations</mark>, and <mark>locations</mark>. The following models were used: the <code>bart-large-cnn</code> model for text summarisation and the <code>dslim/bert-base-NER</code> model for named entity recognition.This web application is an implementation of Text Summarization and Named Entity Recognition.</p></div>
129
+
 
130
  """,
131
  flagging_mode="never",
132
  examples= [example_1, example_2],