Instructions to use xcczach/test-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xcczach/test-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="xcczach/test-model", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("xcczach/test-model", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse files- modeling_test.py +1 -1
modeling_test.py
CHANGED
|
@@ -22,7 +22,7 @@ class TestModel(PreTrainedModel):
|
|
| 22 |
def get_audio_duration(self):
|
| 23 |
audio_path = hf_hub_download(
|
| 24 |
repo_id = self.path,
|
| 25 |
-
|
| 26 |
repo_type = "model",
|
| 27 |
# local_dir = os.path.abspath(os.path.dirname(os.path.abspath(__file__)))
|
| 28 |
)
|
|
|
|
| 22 |
def get_audio_duration(self):
|
| 23 |
audio_path = hf_hub_download(
|
| 24 |
repo_id = self.path,
|
| 25 |
+
filename = "output1.wav",
|
| 26 |
repo_type = "model",
|
| 27 |
# local_dir = os.path.abspath(os.path.dirname(os.path.abspath(__file__)))
|
| 28 |
)
|