Spaces:
Running
on
Zero
Running
on
Zero
I don't know
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ tokenizer = AutoTokenizer.from_pretrained(repo_id)
|
|
14 |
|
15 |
@spaces.GPU
|
16 |
def parler_tts(prompt: str, description: str):
|
|
|
17 |
if len(prompt) > 150:
|
18 |
return "Text is too long. Please keep it under 150 characters.", None
|
19 |
-
print(f"Prompt: {prompt}, Description: {description}")
|
20 |
prompt = add_ruby(prompt)
|
21 |
print(f"Prompt with ruby: {prompt}")
|
22 |
input_ids = tokenizer(description, return_tensors="pt").input_ids.to(device)
|
|
|
14 |
|
15 |
@spaces.GPU
|
16 |
def parler_tts(prompt: str, description: str):
|
17 |
+
print(f"Prompt: {prompt}, Description: {description}")
|
18 |
if len(prompt) > 150:
|
19 |
return "Text is too long. Please keep it under 150 characters.", None
|
|
|
20 |
prompt = add_ruby(prompt)
|
21 |
print(f"Prompt with ruby: {prompt}")
|
22 |
input_ids = tokenizer(description, return_tensors="pt").input_ids.to(device)
|