Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def extract_amount(input_text):
|
|
| 37 |
|
| 38 |
def fix_json_output(output):
|
| 39 |
"""
|
| 40 |
-
Fixes common JSON formatting issues in the model's output.
|
| 41 |
"""
|
| 42 |
# Remove trailing commas before closing braces/brackets
|
| 43 |
output = re.sub(r',\s*([}\]])', r'\1', output)
|
|
|
|
| 37 |
|
| 38 |
def fix_json_output(output):
|
| 39 |
"""
|
| 40 |
+
Fixes common JSON formatting issues in the model's output .
|
| 41 |
"""
|
| 42 |
# Remove trailing commas before closing braces/brackets
|
| 43 |
output = re.sub(r',\s*([}\]])', r'\1', output)
|