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 lines2622632642652652662672672682692709 unmodified lines280281282283284285283286287288289261 unmodified lines symbol_input.change(to_symbol_fn, [symbol_input, textbox, temp_text_var], [textbox, temp_text_var]) symbol_list.click(None, [symbol_list, symbol_list_json], [], symbol_list.click(None, [symbol_list, symbol_list_json], textbox, _js=f""" (i, symbols) => {{ (i, symbols, text) => {{ let root = document.querySelector("body > gradio-app"); if (root.shadowRoot != null) root = root.shadowRoot;9 unmodified lines text_input.selectionEnd = startPos + symbols[i].length; text_input.blur(); window.scrollTo(x, y);
text = text_input.value; return []; return text; }}""") # select character char_dropdown = gr.Dropdown(choices=characters, value = "0:特别周", label='character')app.py+6-3