Update app.py
Browse files
app.py
CHANGED
|
@@ -74,10 +74,14 @@ def analyze_csv(df_hash):
|
|
| 74 |
for line_idx, row in df.iterrows():
|
| 75 |
line_words = []
|
| 76 |
|
| 77 |
-
#
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
if word and chars:
|
| 82 |
words.append(word)
|
| 83 |
chars_list.append(chars)
|
|
|
|
| 74 |
for line_idx, row in df.iterrows():
|
| 75 |
line_words = []
|
| 76 |
|
| 77 |
+
# Get the entire row as a single string and split by commas
|
| 78 |
+
row_text = ','.join(str(val) for val in row if pd.notna(val))
|
| 79 |
+
word_strings = row_text.split(',')
|
| 80 |
+
|
| 81 |
+
# Process each word in the line
|
| 82 |
+
for col_idx, word_str in enumerate(word_strings):
|
| 83 |
+
if word_str.strip():
|
| 84 |
+
word, chars = parse_voynich_word(word_str)
|
| 85 |
if word and chars:
|
| 86 |
words.append(word)
|
| 87 |
chars_list.append(chars)
|