A newer version of the Gradio SDK is available:
									5.49.1
metadata
			title: Qwen2.5 1.5B Instruct Gkd Demo
emoji: π
colorFrom: yellow
colorTo: red
sdk: gradio
sdk_version: 5.34.2
app_file: app.py
pinned: false
license: mit
short_description: Qwen2.5-1.5B-Instruct-gkd-demo
Qwen2.5 1.5B Instruct Gkd Demo
A voice-enabled chatbot powered by:
- Qwen2.5-1.5B-Instruct-gkdfor language generation
- SpeechT5for text-to-speech
- Whisper-smallfor speech-to-text
Try chatting, listen to the audio response, or upload an audio file for transcription.
β Whatβs Fixed & Improved
| Issue | Fix / Enhancement | 
|---|---|
| π Duplicate TTS Block | Removed duplicate code in generate_response_and_audio | 
| β Incorrect Condition Check | Replaced unsafe all([...])with properis not Nonechecks | 
| π Long Text Handling (TTS) | Added chunking to avoid exceeding 512 token limit | 
| π§ LLM Generation Safety | Ensures generated_textis always defined | 
| βοΈ Model Loading Optimization | Moved model loading into the first request (Hugging Face Spaces friendly) | 
| π§Ό Code Cleanliness | Better structure, comments, and readability | 
