Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ from pydub import AudioSegment
|
|
9 |
import time
|
10 |
import epitran
|
11 |
|
12 |
-
from epitran.flite import FliteLexLookup
|
13 |
|
14 |
# Create audio directory if it doesn't exist
|
15 |
if not os.path.exists('audio'):
|
@@ -17,7 +16,7 @@ if not os.path.exists('audio'):
|
|
17 |
|
18 |
# Initialize the epitran object for English
|
19 |
try:
|
20 |
-
epi
|
21 |
except Exception as e:
|
22 |
print(f"Error initializing Epitran: {e}")
|
23 |
|
|
|
9 |
import time
|
10 |
import epitran
|
11 |
|
|
|
12 |
|
13 |
# Create audio directory if it doesn't exist
|
14 |
if not os.path.exists('audio'):
|
|
|
16 |
|
17 |
# Initialize the epitran object for English
|
18 |
try:
|
19 |
+
epi=epitran.Epitran('eng-Latn')
|
20 |
except Exception as e:
|
21 |
print(f"Error initializing Epitran: {e}")
|
22 |
|