Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def capitalize_sentences(text):
|
|
| 43 |
return '. '.join([s for s in sentences if s]).strip() + '.'
|
| 44 |
|
| 45 |
def process_transcript(csv_file, txt_file):
|
| 46 |
-
transcript = pd.read_csv(csv_file)
|
| 47 |
#loi_chuan = pd.read_csv(txt_file, sep='\t', header=None)
|
| 48 |
loi_chuan = pd.read_csv(txt_file.name, sep='\t', header=None, encoding='utf-8', engine='python')
|
| 49 |
|
|
|
|
| 43 |
return '. '.join([s for s in sentences if s]).strip() + '.'
|
| 44 |
|
| 45 |
def process_transcript(csv_file, txt_file):
|
| 46 |
+
transcript = pd.read_csv(csv_file.name)
|
| 47 |
#loi_chuan = pd.read_csv(txt_file, sep='\t', header=None)
|
| 48 |
loi_chuan = pd.read_csv(txt_file.name, sep='\t', header=None, encoding='utf-8', engine='python')
|
| 49 |
|