shripadbhat
commited on
Commit
•
8b0a687
1
Parent(s):
e053abc
Update app.py
Browse files
app.py
CHANGED
@@ -46,13 +46,13 @@ if st.button('Try a random sample from the database'):
|
|
46 |
for sentence in sentences:
|
47 |
all_strings = all_strings + sentence["sentence"] + "\n"
|
48 |
all_strings = punctuation_capitalization([all_strings])[0]
|
49 |
-
st.write("Punctuation and capitalization are ready. Starting named entity recognition.")
|
50 |
-
tagged_string, tags_summary = detect_ner(all_strings)
|
51 |
-
transcript = transcript + '\n' + tagged_string
|
52 |
st.write("Number of speakers: %s" % result[file_name]["speaker_count"])
|
53 |
st.write("Sentences: %s" % len(result[file_name]["sentences"]))
|
54 |
st.write("Words: %s" % len(result[file_name]["words"]))
|
55 |
-
st.write("Found named entities: %s" % tags_summary)
|
56 |
st.download_button(
|
57 |
label="Download audio transcript",
|
58 |
data=transcript,
|
@@ -90,13 +90,13 @@ if uploaded_file is not None:
|
|
90 |
for sentence in sentences:
|
91 |
all_strings = all_strings + sentence["sentence"] + "\n"
|
92 |
all_strings = punctuation_capitalization([all_strings])[0]
|
93 |
-
st.write("Punctuation and capitalization are ready. Starting named entity recognition.")
|
94 |
-
tagged_string, tags_summary = detect_ner(all_strings)
|
95 |
-
transcript = transcript + '\n' + tagged_string
|
96 |
st.write("Number of speakers: %s" % result[file_name]["speaker_count"])
|
97 |
st.write("Sentences: %s" % len(result[file_name]["sentences"]))
|
98 |
st.write("Words: %s" % len(result[file_name]["words"]))
|
99 |
-
st.write("Found named entities: %s" % tags_summary)
|
100 |
st.download_button(
|
101 |
label="Download audio transcript",
|
102 |
data=transcript,
|
|
|
46 |
for sentence in sentences:
|
47 |
all_strings = all_strings + sentence["sentence"] + "\n"
|
48 |
all_strings = punctuation_capitalization([all_strings])[0]
|
49 |
+
#st.write("Punctuation and capitalization are ready. Starting named entity recognition.")
|
50 |
+
#tagged_string, tags_summary = detect_ner(all_strings)
|
51 |
+
#transcript = transcript + '\n' + tagged_string
|
52 |
st.write("Number of speakers: %s" % result[file_name]["speaker_count"])
|
53 |
st.write("Sentences: %s" % len(result[file_name]["sentences"]))
|
54 |
st.write("Words: %s" % len(result[file_name]["words"]))
|
55 |
+
#st.write("Found named entities: %s" % tags_summary)
|
56 |
st.download_button(
|
57 |
label="Download audio transcript",
|
58 |
data=transcript,
|
|
|
90 |
for sentence in sentences:
|
91 |
all_strings = all_strings + sentence["sentence"] + "\n"
|
92 |
all_strings = punctuation_capitalization([all_strings])[0]
|
93 |
+
#st.write("Punctuation and capitalization are ready. Starting named entity recognition.")
|
94 |
+
#tagged_string, tags_summary = detect_ner(all_strings)
|
95 |
+
#transcript = transcript + '\n' + tagged_string
|
96 |
st.write("Number of speakers: %s" % result[file_name]["speaker_count"])
|
97 |
st.write("Sentences: %s" % len(result[file_name]["sentences"]))
|
98 |
st.write("Words: %s" % len(result[file_name]["words"]))
|
99 |
+
#st.write("Found named entities: %s" % tags_summary)
|
100 |
st.download_button(
|
101 |
label="Download audio transcript",
|
102 |
data=transcript,
|