Update mouse.py
Browse files
mouse.py
CHANGED
|
@@ -902,13 +902,11 @@ def handle_boost(prompt: str):
|
|
| 902 |
print(f"Boost ์ฒ๋ฆฌ ์ค ์ค๋ฅ: {str(e)}")
|
| 903 |
return prompt, gr.update(active_key="empty")
|
| 904 |
|
| 905 |
-
|
| 906 |
-
# ํ์ผ ์๋จ์ ํ ๋ฒ๋ง ์ ์ธ
|
| 907 |
mouse_interface = None
|
| 908 |
|
| 909 |
-
# with gr.Blocks ๋ถ๋ถ์์ ์ค์
|
| 910 |
with gr.Blocks(css_paths="app.css",theme=theme) as demo:
|
| 911 |
-
global
|
| 912 |
mouse_interface = demo
|
| 913 |
|
| 914 |
history = gr.State([])
|
|
@@ -916,6 +914,7 @@ with gr.Blocks(css_paths="app.css",theme=theme) as demo:
|
|
| 916 |
"system": SystemPrompt,
|
| 917 |
})
|
| 918 |
|
|
|
|
| 919 |
with ms.Application() as app:
|
| 920 |
with antd.ConfigProvider():
|
| 921 |
# Drawer ์ปดํฌ๋ํธ๋ค
|
|
|
|
| 902 |
print(f"Boost ์ฒ๋ฆฌ ์ค ์ค๋ฅ: {str(e)}")
|
| 903 |
return prompt, gr.update(active_key="empty")
|
| 904 |
|
| 905 |
+
# ํ์ผ ์๋จ์์ ์ ์ญ ๋ณ์ ์ ์ธ
|
|
|
|
| 906 |
mouse_interface = None
|
| 907 |
|
|
|
|
| 908 |
with gr.Blocks(css_paths="app.css",theme=theme) as demo:
|
| 909 |
+
# global ํค์๋ ์ ๊ฑฐ (์ด๋ฏธ ์๋จ์์ ์ ์ธํ์ผ๋ฏ๋ก)
|
| 910 |
mouse_interface = demo
|
| 911 |
|
| 912 |
history = gr.State([])
|
|
|
|
| 914 |
"system": SystemPrompt,
|
| 915 |
})
|
| 916 |
|
| 917 |
+
|
| 918 |
with ms.Application() as app:
|
| 919 |
with antd.ConfigProvider():
|
| 920 |
# Drawer ์ปดํฌ๋ํธ๋ค
|