DmitrMakeev commited on
Commit
ad88552
·
1 Parent(s): a2799dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -12,8 +12,7 @@ def upload_file():
12
  txt_file = request.files['txt_file']
13
 
14
  # Считываем строки из загруженного файла TXT
15
- lines = txt_file.read().decode().split("
16
- ")
17
 
18
  # Создаем словарь в формате JSON
19
  json_data = {str(index+1): line.strip() for index, line in enumerate(lines)}
 
12
  txt_file = request.files['txt_file']
13
 
14
  # Считываем строки из загруженного файла TXT
15
+ lines = txt_file.read().decode().split("")
 
16
 
17
  # Создаем словарь в формате JSON
18
  json_data = {str(index+1): line.strip() for index, line in enumerate(lines)}