ancv commited on
Commit
b315f12
·
verified ·
1 Parent(s): d16a5a4

Delete __init__.py

Browse files
Files changed (1) hide show
  1. __init__.py +0 -32
__init__.py DELETED
@@ -1,32 +0,0 @@
1
- # # SparkAudio/Spark-TTS-0.5B_v2/__init__.py
2
-
3
- # import os
4
- # from pathlib import Path
5
- # # Import registry và AutoModel để đăng ký
6
- # from transformers.pipelines import PIPELINE_REGISTRY
7
- # from transformers import AutoModel
8
-
9
- # # Print để xác nhận file này được thực thi
10
- # print(f"Executing __init__.py for SparkTTS custom module in: {__file__}")
11
-
12
- # try:
13
- # # Import lớp Pipeline tùy chỉnh để đăng ký
14
- # from .pipeline_spark_tts import SparkTTSPipeline
15
-
16
- # # Đăng ký pipeline tùy chỉnh với registry
17
- # # Đảm bảo tên task "text-to-speech" khớp với tên bạn dùng khi gọi pipeline()
18
- # print(f"Attempting to register SparkTTSPipeline for task 'text-to-speech'...")
19
- # PIPELINE_REGISTRY.register_pipeline(
20
- # "text-to-speech", # Tên task
21
- # pipeline_class=SparkTTSPipeline, # Lớp pipeline tùy chỉnh của bạn
22
- # pt_model=AutoModel, # Lớp AutoModel tương thích cho PyTorch
23
- # # tf_model=None, # Thêm lớp TF nếu có
24
- # type="text", # Kiểu input chính (ví dụ: text, audio, image)
25
- # )
26
- # print("Pipeline registration call completed.")
27
-
28
- # # Bắt lỗi nếu import thất bại (ví dụ: thiếu dependency)
29
- # except ImportError as e:
30
- # print(f"WARNING: Could not import SparkTTSPipeline in __init__.py: {e}. Pipeline registration failed.")
31
- # except Exception as e:
32
- # print(f"ERROR: An unexpected error occurred during SparkTTS __init__ registration: {e}")