Spaces:
Sleeping
Sleeping
Zeggai Abdellah commited on
Commit ·
a99d17a
1
Parent(s): 7d1b69e
fix table ids
Browse files- prepare_env.py +1 -1
prepare_env.py
CHANGED
|
@@ -180,7 +180,7 @@ def section_tool_wrapper(retriever, section_path_chunks, query):
|
|
| 180 |
|
| 181 |
for chu in chunks_unique:
|
| 182 |
if "TableElement" == chu["type"]:
|
| 183 |
-
text = f"[Source: {chu['element_id']}]\n CONTENT: \n{chu['text']}\n HTML: \n {chu['table_text_as_html']} \n\n"
|
| 184 |
combined_text.append(text)
|
| 185 |
else:
|
| 186 |
for element in chu["elements"]:
|
|
|
|
| 180 |
|
| 181 |
for chu in chunks_unique:
|
| 182 |
if "TableElement" == chu["type"]:
|
| 183 |
+
text = f"[Source: {chu['elements']['element_id']}]\n CONTENT: \n{chu['text']}\n HTML: \n {chu['table_text_as_html']} \n\n"
|
| 184 |
combined_text.append(text)
|
| 185 |
else:
|
| 186 |
for element in chu["elements"]:
|