Spaces:
Runtime error
Runtime error
fixing bugs
Browse files49 unmodified lines50515253545556342 unmodified lines39940040140240340440540640740840941041141241341449 unmodified linesp = pipeline("automatic-speech-recognition")def wn_syns(word):synonyms = []for syn in wn.synsets(word):342 unmodified linesreturn text.lower(), {'Pronunciation Score': compute_score(text, target) / 100}, phon(target)def speech_to_score(speech):text = p(speech)["text"]return reading_difficulty(text), textdef my_i_func(text):return {"original": "", "interpretation": [('', 0.0), ('what', -0.2), ('great', 0.3), ('day', 0.5), ('', 0.0)]}def gen_syns(word, level):with open('balanced_synonym_data.json') as f:word = word.strip(" ")data = json.loads(f.read())school_to_level = {"Elementary Level":'1', "Middle School Level":'2', "High School Level":'3', "College Level":'4'}pins = wn_syns(word)reko = []49 unmodified lines505152535455565758342 unmodified lines40140240340440540640740840941041141241341449 unmodified linesp = pipeline("automatic-speech-recognition")with open('balanced_synonym_data.json') as f:data = json.loads(f.read())def wn_syns(word):synonyms = []for syn in wn.synsets(word):342 unmodified linesreturn text.lower(), {'Pronunciation Score': compute_score(text, target) / 100}, phon(target)def speech_to_score(speech):text = p(speech)["text"]return reading_difficulty(text), textdef my_i_func(text):return {"original": "", "interpretation": [('', 0.0), ('what', -0.2), ('great', 0.3), ('day', 0.5), ('', 0.0)]}def gen_syns(word, level):word = word.strip(" ")school_to_level = {"Elementary Level":'1', "Middle School Level":'2', "High School Level":'3', "College Level":'4'}pins = wn_syns(word)reko = []
app.py+5-5