wasmdashai commited on
Commit
1a9f0c8
·
verified ·
1 Parent(s): 0461481

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
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 greet(text):
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