Spaces:
Running
on
L4
Running
on
L4
liamcripwell
commited on
Commit
•
8676841
1
Parent(s):
53092d7
ensure_ascii json dumps
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def sliding_window_prediction(template, text, model, tokenizer, window_size=4000
|
|
96 |
|
97 |
# Sync empty fields
|
98 |
synced_pred = sync_empty_fields(json.loads(pred), json.loads(template))
|
99 |
-
synced_pred = json.dumps(synced_pred, indent=4)
|
100 |
|
101 |
# Return progress, current prediction, and updated HTML
|
102 |
yield f"Processed chunk {i+1}/{len(chunks)}", synced_pred, highlighted_pred
|
|
|
96 |
|
97 |
# Sync empty fields
|
98 |
synced_pred = sync_empty_fields(json.loads(pred), json.loads(template))
|
99 |
+
synced_pred = json.dumps(synced_pred, indent=4, ensure_ascii=False)
|
100 |
|
101 |
# Return progress, current prediction, and updated HTML
|
102 |
yield f"Processed chunk {i+1}/{len(chunks)}", synced_pred, highlighted_pred
|