Update app.py
Browse files
app.py
CHANGED
@@ -33,11 +33,11 @@ def capitalize_sentences(text):
|
|
33 |
return '. '.join([s for s in sentences if s]).strip() + '.'
|
34 |
|
35 |
def process_transcript(csv_file, txt_file):
|
36 |
-
|
37 |
-
|
38 |
|
39 |
-
transcript = pd.read_csv(io.StringIO(csv_file.read().decode("utf-8")))
|
40 |
-
loi_chuan = pd.read_csv(io.StringIO(txt_file.read().decode("utf-8")), sep='\t', header=None)
|
41 |
|
42 |
loi_chuan[0] = loi_chuan[0].astype(str).str.strip()
|
43 |
loi_chuan = loi_chuan[~loi_chuan[0].str.fullmatch(r'\[.*\]', na=False)]
|
|
|
33 |
return '. '.join([s for s in sentences if s]).strip() + '.'
|
34 |
|
35 |
def process_transcript(csv_file, txt_file):
|
36 |
+
transcript = pd.read_csv(csv_file)
|
37 |
+
loi_chuan = pd.read_csv(txt_file, sep='\t', header=None)
|
38 |
|
39 |
+
#transcript = pd.read_csv(io.StringIO(csv_file.read().decode("utf-8")))
|
40 |
+
#loi_chuan = pd.read_csv(io.StringIO(txt_file.read().decode("utf-8")), sep='\t', header=None)
|
41 |
|
42 |
loi_chuan[0] = loi_chuan[0].astype(str).str.strip()
|
43 |
loi_chuan = loi_chuan[~loi_chuan[0].str.fullmatch(r'\[.*\]', na=False)]
|