Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,10 @@ import numpy as np
|
|
6 |
import torch # Import torch - might be needed for tokenizer output
|
7 |
|
8 |
# --- Load tokenizer and ONNX model from Hugging Face Hub ---
|
9 |
-
repo_id = "Athspi/Gg" #
|
10 |
|
11 |
tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
12 |
-
onnx_model_path = f"{repo_id}/mms_tts_eng.onnx" # Path to ONNX model in
|
13 |
ort_session = onnxruntime.InferenceSession(onnx_model_path, providers=['CPUExecutionProvider'])
|
14 |
|
15 |
|
|
|
6 |
import torch # Import torch - might be needed for tokenizer output
|
7 |
|
8 |
# --- Load tokenizer and ONNX model from Hugging Face Hub ---
|
9 |
+
repo_id = "Athspi/Gg" # Correct repo ID
|
10 |
|
11 |
tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
12 |
+
onnx_model_path = f"{repo_id}/mms_tts_eng.onnx" # Path to ONNX model in repo root
|
13 |
ort_session = onnxruntime.InferenceSession(onnx_model_path, providers=['CPUExecutionProvider'])
|
14 |
|
15 |
|