Enhance configuration validation and audio processing limits
malek-messaoudii
918acab
- Added configuration validation to ensure required environment variables are set.
- Introduced MAX_AUDIO_SIZE to limit audio file uploads to 10MB.
- Updated audio processing routes to check file size before processing.
- Adjusted TTS service to handle audio data extraction more robustly.
Update config.py
malek-messaoudii
9a6ab0c
add files
malek-messaoudii
4a13628
Update audio.py
malek-messaoudii
218c6a3
Update codes
malek-messaoudii
d4b6133
Update audio.py
malek-messaoudii
520a06a
Correct files
malek-messaoudii
544d113
Update tts_service.py
malek-messaoudii
4f1c42b
Update stt_service.py
malek-messaoudii
14f424f
Refactor audio models and services for improved error handling and response streaming
malek-messaoudii
9aa985d
Update gemini_client.py
malek-messaoudii
e411044
update env
malek-messaoudii
91b1985
add gemini api
malek-messaoudii
73d4f3c
Fix errors
malek-messaoudii
8d87b19
Add tts/stt services
malek-messaoudii
c7fc3b6
Remove test commit message from main.py
S01Nour
28e04dd
Update main.py to add a test commit message
S01Nour
6efff30
Update label.py
malek-messaoudii
f694f38
Update label.py
malek-messaoudii
32ba92c
Update label.py
malek-messaoudii
ad2dc28
Update label files
malek-messaoudii
8a40c79
Update label.py
malek-messaoudii
1d14fcd
Update config.py
malek-messaoudii
492be8b
update name
malek-messaoudii
54b5a2a
update name
malek-messaoudii
15da915
'add'
malek-messaoudii
fd65bc8
Update training script and model files
malek-messaoudii
cfbe56e
Update training script and model files
malek-messaoudii
d9d9974
add model
malek-messaoudii
9af5350
Update training script and model file
malek-messaoudii
f8a4eeb
Update training script and model files
malek-messaoudii
1438c6f
Add label/KPA-related schemas to models and update documentation in label routes
Yassine Mhirsi
3afc11b
Update API routes to include label module and add prefix for stance and label endpoints
Yassine Mhirsi
693c788
Enhance KpaModelManager to load fine-tuned weights from Hugging Face and update requirements to include huggingface_hub
Yassine Mhirsi
d289997
Update requirements.txt to include protobuf version 3.20.0
Yassine Mhirsi
6ba8f9f
Add KPA model integration and update configuration for label predictions
Yassine Mhirsi
f28285b
up
malek-messaoudii
d02227d
Add Kpa classification model
malek-messaoudii
03d23e8
Merge branch 'main' of https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models
malek-messaoudii
e1f71bd
Update config.py
malek-messaoudii
5bc471c
Update Hugging Face stance model ID configuration to use environment variable directly
Yassine Mhirsi
3a33610
Merge branch 'main' of https://huggingface.co/spaces/NLP-Debater-Project/FastAPI-Backend-Models
Yassine Mhirsi
3d16d84
Update API documentation URL in lifespan function of main.py