Spaces:
Runtime error
Runtime error
hectorduran
commited on
Commit
·
e763fba
1
Parent(s):
bf223f9
Upload app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
from nltk.corpus import cmudict
|
3 |
from difflib import SequenceMatcher
|
4 |
|
5 |
# Load CMU Pronouncing Dictionary
|
|
|
6 |
d = cmudict.dict()
|
7 |
|
8 |
# Function to get phonetic transcription of a word
|
|
|
1 |
import streamlit as st
|
2 |
+
import nltk
|
3 |
from nltk.corpus import cmudict
|
4 |
from difflib import SequenceMatcher
|
5 |
|
6 |
# Load CMU Pronouncing Dictionary
|
7 |
+
nltk.download('cmudict')
|
8 |
d = cmudict.dict()
|
9 |
|
10 |
# Function to get phonetic transcription of a word
|