Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -217,9 +217,14 @@ def add_voice_labelv2(json_file, audio_path):
|
|
| 217 |
}
|
| 218 |
|
| 219 |
begin_seq = True
|
|
|
|
|
|
|
| 220 |
|
| 221 |
except Exception as e:
|
| 222 |
print(f"An exception occurred: {e}")
|
|
|
|
|
|
|
|
|
|
| 223 |
|
| 224 |
with gr.Blocks() as demo:
|
| 225 |
gr.HTML(HEADER)
|
|
|
|
| 217 |
}
|
| 218 |
|
| 219 |
begin_seq = True
|
| 220 |
+
|
| 221 |
+
|
| 222 |
|
| 223 |
except Exception as e:
|
| 224 |
print(f"An exception occurred: {e}")
|
| 225 |
+
|
| 226 |
+
with open(json_file, 'w') as f:
|
| 227 |
+
json.dump(data, f, indent=4)
|
| 228 |
|
| 229 |
with gr.Blocks() as demo:
|
| 230 |
gr.HTML(HEADER)
|