Sangjun2 commited on
Commit
ac6cb27
Β·
verified Β·
1 Parent(s): eaa60bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ def ko_deplot_convert_to_dataframe(label_table_str): #function that converts tex
123
  title= lines[0].split(" | ")[1]
124
 
125
  if(len(lines[1].split("|")) == len(lines[2].split("|"))):
126
- headers=lines[1].split(" | ")
127
  for line in lines[2:]:
128
  data.append(line.split("|"))
129
  df = pd.DataFrame(data, columns=headers)
 
123
  title= lines[0].split(" | ")[1]
124
 
125
  if(len(lines[1].split("|")) == len(lines[2].split("|"))):
126
+ headers=lines[1].split("|")
127
  for line in lines[2:]:
128
  data.append(line.split("|"))
129
  df = pd.DataFrame(data, columns=headers)