Update app.py
Browse files
app.py
CHANGED
@@ -15,16 +15,15 @@ import os
|
|
15 |
import re
|
16 |
|
17 |
# --- Configuration ---
|
18 |
-
# IMPORTANT: Replace these with your actual model IDs on the Hugging Face Hub.
|
19 |
-
# You must upload your fine-tuned ASR model to the Hub.
|
20 |
-
STT_MODEL_ID = "YOUR_USERNAME/YOUR_ASR_MODEL_ID" # e.g., "MickyMike/SALAMA_B3_ASR"
|
21 |
|
22 |
-
|
|
|
|
|
23 |
LLM_MODEL_ID = "google/gemma-2-9b-it"
|
24 |
|
25 |
# This is the tokenizer for your ONNX TTS model.
|
26 |
TTS_TOKENIZER_ID = "facebook/mms-tts-swh"
|
27 |
-
TTS_ONNX_MODEL_PATH = "swahili_tts.onnx"
|
28 |
|
29 |
# Ensure the temporary directory for audio files exists
|
30 |
TEMP_DIR = "temp"
|
|
|
15 |
import re
|
16 |
|
17 |
# --- Configuration ---
|
|
|
|
|
|
|
18 |
|
19 |
+
STT_MODEL_ID = "EYEDOL/SALAMA_C3" # e.g., ""
|
20 |
+
|
21 |
+
#Swahili LLM.
|
22 |
LLM_MODEL_ID = "google/gemma-2-9b-it"
|
23 |
|
24 |
# This is the tokenizer for your ONNX TTS model.
|
25 |
TTS_TOKENIZER_ID = "facebook/mms-tts-swh"
|
26 |
+
TTS_ONNX_MODEL_PATH = "swahili_tts.onnx"
|
27 |
|
28 |
# Ensure the temporary directory for audio files exists
|
29 |
TEMP_DIR = "temp"
|