Update handler.py
Browse filesFixing indent in self.voice_id.
- handler.py +4 -3
handler.py
CHANGED
|
@@ -47,9 +47,10 @@ class EndpointHandler:
|
|
| 47 |
|
| 48 |
self.ENROLLMENT_DIR = "enrollments"
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
|
|
|
| 53 |
# Set up functions to format and encode text/audio
|
| 54 |
def encode_text(self, text):
|
| 55 |
return self.tokenizer.encode(text, return_tensors="pt", add_special_tokens=False)
|
|
|
|
| 47 |
|
| 48 |
self.ENROLLMENT_DIR = "enrollments"
|
| 49 |
|
| 50 |
+
# Move to devices
|
| 51 |
+
self.voice_id = None
|
| 52 |
+
|
| 53 |
+
|
| 54 |
# Set up functions to format and encode text/audio
|
| 55 |
def encode_text(self, text):
|
| 56 |
return self.tokenizer.encode(text, return_tensors="pt", add_special_tokens=False)
|