derina commited on
Commit
8a1c525
·
1 Parent(s): e889adc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,8 +7,8 @@ def summarize(text):
7
  return summarizer(text, max_length=400, min_length=50)[0]['summary_text']
8
 
9
 
10
- title = "Music Spleeter"
11
- description = "Clearing a musical composition of the performer's voice is a common task. It is solved well, for example, by professional audio file editing programs. AI algorithms have also been gaining ground recently."
12
- article = "<div style='text-align: center; max-width:800px; margin:10px auto;'><p>In this case we use Deezer's Spleeter with ready pretrained models. It can leave as an output both just the music and just the performer's voice.</p><p>Sources: <a href='https://github.com/deezer/spleeter/' target='_blank'>Spleeter</a>: a Fast and Efficient Music Source Separation Tool with Pre-Trained Models</p><p style='text-align: center'><a href='https://starstat.yt/cat/music' target='_blank'>StarStat Music</a>: Youtubers Net Worth in category Music</p></div>"
13
 
14
  gr.Interface(fn=summarize, inputs=gr.inputs.Textbox(lines=7, placeholder="Enter text to summarize here"), outputs="text", title=title, description=description, article=article).launch()
 
7
  return summarizer(text, max_length=400, min_length=50)[0]['summary_text']
8
 
9
 
10
+ title = "OpenAI Summarizer"
11
+ description = "Abstractive Text Summarization using Hugging Face transformers."
12
+ article = "<div style='text-align: center; max-width:800px; margin:10px auto;'><p></p><p>Sources: <a href='https://github.com/huggingface/transformers/' target='_blank'>Transformers</a>: Machine Learning with pretrained models</p><p style='text-align: center'> With help of <a href='https://fxstrengthmeter.com/' target='_blank'>Currency Strength meter</a>: live indicator with real-time market data that compares a currency with other major currencies</p></div>"
13
 
14
  gr.Interface(fn=summarize, inputs=gr.inputs.Textbox(lines=7, placeholder="Enter text to summarize here"), outputs="text", title=title, description=description, article=article).launch()