celery added for asynchronus working of voice separation

This commit is contained in:
karthikeyan-ks
2025-01-08 01:09:50 +05:30
parent 10181e4d17
commit 889630d7f1
5 changed files with 22 additions and 16 deletions
+12
View File
@@ -0,0 +1,12 @@
from django import forms
class UploadFileForm(forms.Form):
file = forms.FileField(label='Select a file')
# You can add custom validation if needed
def clean_file(self):
file = self.cleaned_data.get('file')
if not file:
raise forms.ValidationError("No file uploaded!")
# Additional custom validations can be added here
return file