Spaces:
Running
Running
Update app.py
Browse files155 unmodified lines156157158159159160161162233 unmodified lines39639739839939940040140240380 unmodified lines484485486486487488489490490491155 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) as iface: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 lines except Exception as e: print(f"์ํฌ๋ฆฟ ์๋ฌ: {e}") # ์ํฌ๋ฆฟ์ด ์์ผ๋ฉด ์์๋ก a/1, User1/1111 ์ ์ฉ if not auth_list: auth_list = [("a", "1"), ("User1", "1111")] # โ
์๋ฌ ๋ฐฉ์ง: server_name="0.0.0.0" ์ต์
์ถ๊ฐ! iface.launch(auth=auth_list) iface.launch(auth=auth_list, server_name="0.0.0.0")app.py+5-4