there was an error on line 216
Browse files
app.py
CHANGED
@@ -213,8 +213,7 @@ def get_audio_info(audio_path):
|
|
213 |
version = str("Version: " + data['version']) if 'version' in data else "Version: Unknown"
|
214 |
info = str(version + global_prompt + bpm + key + scale + prompts + duration + overlap + seed + audio_mode + input_length + channel + sr_select + model + custom_model + base_model + decoder + topk + topp + temperature + cfg_coef)
|
215 |
if info == "":
|
216 |
-
return "No tags found. Either the file is not generated by
|
217 |
-
+ V1.2.7 and higher or the tags are corrupted. (Discord removes metadata from mp4 and wav files, so you can't use them)"
|
218 |
return info
|
219 |
else:
|
220 |
with open(audio_path.name) as json_file:
|
|
|
213 |
version = str("Version: " + data['version']) if 'version' in data else "Version: Unknown"
|
214 |
info = str(version + global_prompt + bpm + key + scale + prompts + duration + overlap + seed + audio_mode + input_length + channel + sr_select + model + custom_model + base_model + decoder + topk + topp + temperature + cfg_coef)
|
215 |
if info == "":
|
216 |
+
return "No tags found. Either the file is not generated by V1.2.7 and higher or the tags are corrupted. (Discord removes metadata from mp4 and wav files, so you can't use them)"
|
|
|
217 |
return info
|
218 |
else:
|
219 |
with open(audio_path.name) as json_file:
|