Update README.md
Browse files
README.md
CHANGED
|
@@ -20,16 +20,11 @@ pipeline_tag: text-to-speech
|
|
| 20 |
|
| 21 |
This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
| 22 |
|
| 23 |
-
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
| 24 |
-
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
inference.py
|
| 29 |
-
(please install the necessary libraries)
|
| 30 |
-
|
| 31 |
-
# respective torch from https://pytorch.org/
|
| 32 |
-
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
|
| 33 |
pip install snac pathlib torch transformers huggingface_hub librosa numpy scipy torchaudio Flask jsonify
|
| 34 |
|
| 35 |
import os
|
|
@@ -44,7 +39,7 @@ from scipy.io.wavfile import write
|
|
| 44 |
import torchaudio
|
| 45 |
from flask import Flask, jsonify, request
|
| 46 |
|
| 47 |
-
modelLocalPath="
|
| 48 |
|
| 49 |
|
| 50 |
def load_orpheus_tokenizer(model_id: str = modelLocalPath) -> AutoTokenizer:
|
|
|
|
| 20 |
|
| 21 |
This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
| 22 |
|
|
|
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
inference.py
|
| 27 |
+
(please install the necessary libraries)pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
|
|
|
|
|
|
|
|
|
|
| 28 |
pip install snac pathlib torch transformers huggingface_hub librosa numpy scipy torchaudio Flask jsonify
|
| 29 |
|
| 30 |
import os
|
|
|
|
| 39 |
import torchaudio
|
| 40 |
from flask import Flask, jsonify, request
|
| 41 |
|
| 42 |
+
modelLocalPath="Cosmobillian/turkish_orpheus_tts"
|
| 43 |
|
| 44 |
|
| 45 |
def load_orpheus_tokenizer(model_id: str = modelLocalPath) -> AutoTokenizer:
|