Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def clean_text(text):
|
|
10 |
cleaned_text = re.sub(r"[0-9a-zA-Z\.]", " ", text)
|
11 |
|
12 |
return cleaned_text
|
13 |
-
def
|
14 |
|
15 |
text=clean_text(text).strip()
|
16 |
|
@@ -22,6 +22,14 @@ def greet(text):
|
|
22 |
yield 22025,wave.view(-1).cpu().numpy()
|
23 |
except :pass
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
|
27 |
|
|
|
10 |
cleaned_text = re.sub(r"[0-9a-zA-Z\.]", " ", text)
|
11 |
|
12 |
return cleaned_text
|
13 |
+
def greet2(text):
|
14 |
|
15 |
text=clean_text(text).strip()
|
16 |
|
|
|
22 |
yield 22025,wave.view(-1).cpu().numpy()
|
23 |
except :pass
|
24 |
|
25 |
+
def greet(text):
|
26 |
+
|
27 |
+
t=clean_text(text).strip()
|
28 |
+
wave = model.tts(t)
|
29 |
+
|
30 |
+
return 22025,wave.view(-1).cpu().numpy()
|
31 |
+
|
32 |
+
|
33 |
|
34 |
|
35 |
|