Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ with gr.Blocks() as demo:
|
|
| 176 |
if not json_str:
|
| 177 |
return None
|
| 178 |
with tempfile.NamedTemporaryFile(
|
| 179 |
-
mode='w', delete=False, prefix="detection_box_"
|
| 180 |
) as f:
|
| 181 |
f.write(json_str)
|
| 182 |
return f.name
|
|
|
|
| 176 |
if not json_str:
|
| 177 |
return None
|
| 178 |
with tempfile.NamedTemporaryFile(
|
| 179 |
+
mode='w', delete=False, prefix="detection_box_", suffix='.json', encoding='utf-8'
|
| 180 |
) as f:
|
| 181 |
f.write(json_str)
|
| 182 |
return f.name
|