Spaces:
Sleeping
Sleeping
ㅅㅎㅇ commited on
Commit ·
89d4719
1
Parent(s): 1483c7e
Fix: Remove clear_btn and submit_btn parameters for Gradio 5.0 - These parameters were removed in Gradio 5.0 - Use default buttons provided by ChatInterface
Browse files- CodeWeaver/ui/app.py +1 -3
CodeWeaver/ui/app.py
CHANGED
|
@@ -152,13 +152,11 @@ def create_demo() -> gr.Blocks:
|
|
| 152 |
# chatbot.clear() 이벤트에 세션 리셋 핸들러 바인딩
|
| 153 |
chatbot.clear(reset_session, outputs=[session_id_input])
|
| 154 |
|
| 155 |
-
# ChatInterface 생성 (
|
| 156 |
chatbot_interface = gr.ChatInterface(
|
| 157 |
fn=chat,
|
| 158 |
examples=None,
|
| 159 |
chatbot=chatbot,
|
| 160 |
-
submit_btn="전송",
|
| 161 |
-
clear_btn="🗑️ 대화 초기화",
|
| 162 |
additional_inputs=[session_id_input],
|
| 163 |
)
|
| 164 |
|
|
|
|
| 152 |
# chatbot.clear() 이벤트에 세션 리셋 핸들러 바인딩
|
| 153 |
chatbot.clear(reset_session, outputs=[session_id_input])
|
| 154 |
|
| 155 |
+
# ChatInterface 생성 (Gradio 5.0: submit_btn과 clear_btn 파라미터 제거됨)
|
| 156 |
chatbot_interface = gr.ChatInterface(
|
| 157 |
fn=chat,
|
| 158 |
examples=None,
|
| 159 |
chatbot=chatbot,
|
|
|
|
|
|
|
| 160 |
additional_inputs=[session_id_input],
|
| 161 |
)
|
| 162 |
|