vkumartr commited on
Commit
ff448cb
·
verified ·
1 Parent(s): 03771f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -216,7 +216,6 @@ def extract_invoice_data(file_data, content_type):
216
 
217
  # Clean and parse JSON output
218
  content = response.choices[0].message.content.strip()
219
- cleaned_content = content.strip().strip('```json').strip('```')
220
 
221
  try:
222
  parsed_content = json.loads(cleaned_content)
 
216
 
217
  # Clean and parse JSON output
218
  content = response.choices[0].message.content.strip()
 
219
 
220
  try:
221
  parsed_content = json.loads(cleaned_content)