Spaces:
Running
Running
Fix error in gradio cached examples
Browse files
app.py
CHANGED
@@ -17,6 +17,9 @@ from maploc.utils.viz_localization import (
|
|
17 |
# Avoid `_csv.Error: field larger than field limit` with large plots.
|
18 |
csv.field_size_limit(sys.maxsize)
|
19 |
|
|
|
|
|
|
|
20 |
|
21 |
def run(image, address, tile_size_meters, num_rotations):
|
22 |
image_path = image.name
|
|
|
17 |
# Avoid `_csv.Error: field larger than field limit` with large plots.
|
18 |
csv.field_size_limit(sys.maxsize)
|
19 |
|
20 |
+
# Fixes https://github.com/gradio-app/gradio/issues/9287
|
21 |
+
gr.utils.sanitize_value_for_csv = lambda v: v
|
22 |
+
|
23 |
|
24 |
def run(image, address, tile_size_meters, num_rotations):
|
25 |
image_path = image.name
|