Spaces:
Build error
Build error
Update app.py
Browse files
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:
|