int->str
Browse files
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
|