Spaces:
Runtime error
Runtime error
Fixed phoneme recording error (#8)
Browse files- Fixed phoneme recording error (8d52ab1bfd566b4a85b4980b1e4f9b85deec2104)
Co-authored-by: Закиров Ленар <zelk12@users.noreply.huggingface.co>
261 unmodified lines2622632642652662672682692709 unmodified lines280281282283284285286261 unmodified linessymbol_input.change(to_symbol_fn,[symbol_input, textbox, temp_text_var],[textbox, temp_text_var])symbol_list.click(None, [symbol_list, symbol_list_json], [],_js=f"""(i, symbols) => {{let root = document.querySelector("body > gradio-app");if (root.shadowRoot != null)root = root.shadowRoot;9 unmodified linestext_input.selectionEnd = startPos + symbols[i].length;text_input.blur();window.scrollTo(x, y);return [];}}""")# select characterchar_dropdown = gr.Dropdown(choices=characters, value = "0:特别周", label='character')261 unmodified lines2622632642652662672682692709 unmodified lines280281282283284285286287288289261 unmodified linessymbol_input.change(to_symbol_fn,[symbol_input, textbox, temp_text_var],[textbox, temp_text_var])symbol_list.click(None, [symbol_list, symbol_list_json], textbox,_js=f"""(i, symbols, text) => {{let root = document.querySelector("body > gradio-app");if (root.shadowRoot != null)root = root.shadowRoot;9 unmodified linestext_input.selectionEnd = startPos + symbols[i].length;text_input.blur();window.scrollTo(x, y);text = text_input.value;return text;}}""")# select characterchar_dropdown = gr.Dropdown(choices=characters, value = "0:特别周", label='character')
app.py+6-3