Skip to content

Commit 46c4f49

Browse files
committed
fixed
1 parent e3b5f77 commit 46c4f49

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/axiomatic/axtract/axtract_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def create_report(report_data: EquationExtractionResponse, report_path: str = ".
248248
html_content += f"""
249249
<tr>
250250
<td>\\({symbol.key}\\)</td>
251-
<td>{symbol.key}</td>
251+
<td>{symbol.value}</td>
252252
</tr>
253253
"""
254254

src/axiomatic/axtract/interactive_table.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def save_custom_presets(custom_data, file_path):
141141
# 4) Load custom presets from JSON (if any) and integrate them
142142
# ---------------------------------------------------------------
143143
variable_dict = _create_variable_dict(loaded_equations)
144+
print(variable_dict)
144145
custom_presets = load_custom_presets(file_path)
145146

146147
for custom_name, values_dict in custom_presets.items():
@@ -150,7 +151,8 @@ def save_custom_presets(custom_data, file_path):
150151
# 5) For the "Add Requirement" dropdown
151152
# ---------------------------------------------------------------
152153
variable_names = [details["name"] for details in variable_dict.values()]
153-
print(variable_names)
154+
print(variable_dict)
155+
154156
# This dict will store the final user inputs after pressing "Submit"
155157
result = {}
156158

@@ -409,6 +411,6 @@ def _create_variable_dict(equation_response: EquationExtractionResponse) -> dict
409411
for symbol in equation.latex_symbols:
410412
# Only add if not already present (avoid duplicates)
411413
if symbol.key not in variable_dict:
412-
variable_dict[symbol.key] = {"name": symbol.key}
414+
variable_dict[symbol.key] = {"name": symbol.value}
413415

414416
return variable_dict

src/axiomatic/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ def analyze_equations(
4242
file_path: Optional[str] = None,
4343
url_path: Optional[str] = None,
4444
parsed_paper: Optional[ParseResponse] = None,
45-
):
46-
response: Union[EquationExtractionResponse, EquationProcessingResponse]
47-
45+
):
4846
if file_path:
4947
with open(file_path, "rb") as file:
5048
response = self._ax_client.document.equation.from_pdf(document=file)

0 commit comments

Comments
 (0)