Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|