Spaces:
Paused
Paused
Upload app.py
Browse files
app.py
CHANGED
|
@@ -9,10 +9,10 @@ if __name__ == '__main__':
|
|
| 9 |
dtype = "float16" if torch.cuda.is_available() else "float32"
|
| 10 |
|
| 11 |
# You can change the model ID here based on what you want to deploy:
|
| 12 |
-
# "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"
|
| 13 |
-
# "Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign"
|
| 14 |
-
# "Qwen/Qwen3-TTS-12Hz-1.7B-Base"
|
| 15 |
-
model_id = "Qwen/Qwen3-TTS-12Hz-1.7B-
|
| 16 |
|
| 17 |
# Construct the arguments expected by the qwen-tts-demo CLI
|
| 18 |
sys.argv = [
|
|
@@ -23,9 +23,5 @@ if __name__ == '__main__':
|
|
| 23 |
"--ip", "0.0.0.0",
|
| 24 |
"--port", "7860" # Standard Hugging Face Spaces Gradio port
|
| 25 |
]
|
| 26 |
-
|
| 27 |
-
# Nvidia T4 GPUs (Turing architecture) do not support Flash Attention 2
|
| 28 |
-
# Flash Attention 2 requires Ampere GPUs or newer.
|
| 29 |
-
sys.argv.append("--no-flash-attn")
|
| 30 |
|
| 31 |
sys.exit(main())
|
|
|
|
| 9 |
dtype = "float16" if torch.cuda.is_available() else "float32"
|
| 10 |
|
| 11 |
# You can change the model ID here based on what you want to deploy:
|
| 12 |
+
# "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice" (Standard voice only)
|
| 13 |
+
# "Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign" (Design your own voice)
|
| 14 |
+
# "Qwen/Qwen3-TTS-12Hz-1.7B-Base" (Includes 0-shot Voice Cloning)
|
| 15 |
+
model_id = "Qwen/Qwen3-TTS-12Hz-1.7B-Base"
|
| 16 |
|
| 17 |
# Construct the arguments expected by the qwen-tts-demo CLI
|
| 18 |
sys.argv = [
|
|
|
|
| 23 |
"--ip", "0.0.0.0",
|
| 24 |
"--port", "7860" # Standard Hugging Face Spaces Gradio port
|
| 25 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
sys.exit(main())
|