Spaces:
Running
Running
Update app.py
Browse files155 unmodified lines156157158159160161162233 unmodified lines39639739839940040140280 unmodified lines483484485486487488489490155 unmodified linesdict_store = DictStore(dict_path, AUTO_MERGE_WORDS)# =========================================================# ์ ํธ ๋ฐ ์ซ์/๋จ์ ์์ง (์๋ต ์์ด ์ ๋ถ ํฌํจ)# =========================================================def normalize_text(text):return (text or "").replace("\r\n", "\n").replace("\r", "\n")233 unmodified lines# =========================================================# UI ๊ตฌ์ฑ# =========================================================with gr.Blocks(theme="default", css=custom_css) as iface:gr.Markdown("## ๐๏ธ ๋๋ง์ TTS ์ ์ฒ๋ฆฌ ๋ณํ๊ธฐ")last_o = gr.State("")last_f = gr.State("")80 unmodified linesexcept Exception as e:print(f"์ํฌ๋ฆฟ ์๋ฌ: {e}")# ์ํฌ๋ฆฟ์ด ์์ผ๋ฉด ์์๋ก a/1, User1/1111 ์ ์ฉif not auth_list:auth_list = [("a", "1"), ("User1", "1111")]iface.launch(auth=auth_list)155 unmodified lines156157158159160161162233 unmodified lines39639739839940040140240380 unmodified lines484485486487488489490491155 unmodified linesdict_store = DictStore(dict_path, AUTO_MERGE_WORDS)# =========================================================# ์ ํธ ๋ฐ ์ซ์/๋จ์ ์์ง# =========================================================def normalize_text(text):return (text or "").replace("\r\n", "\n").replace("\r", "\n")233 unmodified lines# =========================================================# UI ๊ตฌ์ฑ# =========================================================# โ ์๋ฌ ๋ฐฉ์ง: ssr=False ์ต์ ์ถ๊ฐ!with gr.Blocks(theme="default", css=custom_css, ssr=False) as iface:gr.Markdown("## ๐๏ธ ๋๋ง์ TTS ์ ์ฒ๋ฆฌ ๋ณํ๊ธฐ")last_o = gr.State("")last_f = gr.State("")80 unmodified linesexcept Exception as e:print(f"์ํฌ๋ฆฟ ์๋ฌ: {e}")if not auth_list:auth_list = [("a", "1"), ("User1", "1111")]# โ ์๋ฌ ๋ฐฉ์ง: server_name="0.0.0.0" ์ต์ ์ถ๊ฐ!iface.launch(auth=auth_list, server_name="0.0.0.0")
app.py+5-4