Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,11 +28,6 @@ def process_text(text):
|
|
28 |
|
29 |
return outline
|
30 |
|
31 |
-
def unit_test(input_text):
|
32 |
-
st.write("Test Text without Timestamps:")
|
33 |
-
test_text_without_timestamps = remove_timestamps(input_text)
|
34 |
-
st.write(test_text_without_timestamps)
|
35 |
-
|
36 |
def extract_high_information_words(text, top_n=10):
|
37 |
words = nltk.word_tokenize(text)
|
38 |
words = [word.lower() for word in words if word.isalpha()]
|
@@ -66,8 +61,6 @@ if uploaded_file:
|
|
66 |
file_text = uploaded_file.read().decode("utf-8")
|
67 |
text_without_timestamps = remove_timestamps(file_text)
|
68 |
|
69 |
-
unit_test(file_text)
|
70 |
-
|
71 |
top_words = extract_high_information_words(text_without_timestamps, 10)
|
72 |
st.markdown("**Top 10 High Information Words:**")
|
73 |
st.write(top_words)
|
|
|
28 |
|
29 |
return outline
|
30 |
|
|
|
|
|
|
|
|
|
|
|
31 |
def extract_high_information_words(text, top_n=10):
|
32 |
words = nltk.word_tokenize(text)
|
33 |
words = [word.lower() for word in words if word.isalpha()]
|
|
|
61 |
file_text = uploaded_file.read().decode("utf-8")
|
62 |
text_without_timestamps = remove_timestamps(file_text)
|
63 |
|
|
|
|
|
64 |
top_words = extract_high_information_words(text_without_timestamps, 10)
|
65 |
st.markdown("**Top 10 High Information Words:**")
|
66 |
st.write(top_words)
|