Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -504,16 +504,7 @@ def handle_history_selection(evt: gr.SelectData):
|
|
| 504 |
print(f"Error handling history selection: {e}")
|
| 505 |
return None, None, gr.update(active_key="empty"), gr.update(open=True)
|
| 506 |
|
| 507 |
-
|
| 508 |
-
with gr.Blocks(css_paths="app.css",theme=theme) as demo:
|
| 509 |
-
# ... (기존 코드) ...
|
| 510 |
-
|
| 511 |
-
# 세션 히스토리 이벤트 핸들러
|
| 512 |
-
session_history.select(
|
| 513 |
-
fn=handle_history_selection,
|
| 514 |
-
inputs=[],
|
| 515 |
-
outputs=[input, sandbox, state_tab, session_drawer]
|
| 516 |
-
)
|
| 517 |
|
| 518 |
def save_chat(session_id, prompt, response):
|
| 519 |
print(f"Starting save_chat with session_id: {session_id}")
|
|
@@ -843,7 +834,12 @@ with gr.Blocks(css_paths="app.css",theme=theme) as demo:
|
|
| 843 |
outputs=[session_drawer, session_list, session_history]
|
| 844 |
)
|
| 845 |
|
| 846 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 847 |
|
| 848 |
|
| 849 |
session_list.change(
|
|
|
|
| 504 |
print(f"Error handling history selection: {e}")
|
| 505 |
return None, None, gr.update(active_key="empty"), gr.update(open=True)
|
| 506 |
|
| 507 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 508 |
|
| 509 |
def save_chat(session_id, prompt, response):
|
| 510 |
print(f"Starting save_chat with session_id: {session_id}")
|
|
|
|
| 834 |
outputs=[session_drawer, session_list, session_history]
|
| 835 |
)
|
| 836 |
|
| 837 |
+
# 세션 히스토리 이벤트 핸들러
|
| 838 |
+
session_history.select(
|
| 839 |
+
fn=handle_history_selection,
|
| 840 |
+
inputs=[],
|
| 841 |
+
outputs=[input, sandbox, state_tab, session_drawer]
|
| 842 |
+
)
|
| 843 |
|
| 844 |
|
| 845 |
session_list.change(
|