peb-peb commited on
Commit
64850f1
1 Parent(s): c359414
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def main(audio_file, number_of_speakers):
22
  topic = topic_gen(text_data)[0]["generated_text"]
23
  summary = summarizer(text_data)[0]["summary_text"]
24
  sent_analy = sentiment_analyser(text_data)
25
- sent_analysis = sent_analy[0]["label"] + " (" + int(sent_analy[0]["score"]) * 100 + "%)"
26
  return topic, summary, sent_analysis
27
 
28
  # UI Interface on the Hugging Face Page
 
22
  topic = topic_gen(text_data)[0]["generated_text"]
23
  summary = summarizer(text_data)[0]["summary_text"]
24
  sent_analy = sentiment_analyser(text_data)
25
+ sent_analysis = sent_analy[0]["label"] + " (" + str(int(sent_analy[0]["score"]) * 100) + "%)"
26
  return topic, summary, sent_analysis
27
 
28
  # UI Interface on the Hugging Face Page