davidberenstein1957 HF staff commited on
Commit
5ce0e70
·
verified ·
1 Parent(s): 6e6e626

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def process_records_gradio(records, example_records, fields, question):
75
  results = []
76
  for record in records:
77
  output = next(task.process(inputs=[{"records": record}]))
78
- results.append(output[0]["suggestions"])
79
 
80
  return json.dumps({"results": results}, indent=2)
81
  except Exception as e:
 
75
  results = []
76
  for record in records:
77
  output = next(task.process(inputs=[{"records": record}]))
78
+ results.append(output[0]["suggestions"].serialize())
79
 
80
  return json.dumps({"results": results}, indent=2)
81
  except Exception as e: