Update app.py
Browse files
app.py
CHANGED
@@ -452,7 +452,8 @@ def load_session_history(selected_session):
|
|
452 |
html_content += """<div class="prompt-grid">"""
|
453 |
|
454 |
for i, (prompt, response, timestamp) in enumerate(history):
|
455 |
-
|
|
|
456 |
formatted_time = datetime.strptime(timestamp, '%Y-%m-%d %H:%M:%S.%f').strftime('%Y-%m-%d %H:%M')
|
457 |
|
458 |
# HTML 이스케이프 처리
|
|
|
452 |
html_content += """<div class="prompt-grid">"""
|
453 |
|
454 |
for i, (prompt, response, timestamp) in enumerate(history):
|
455 |
+
# 여기서 short_prompt를 올바르게 정의
|
456 |
+
short_prompt = prompt[:100] + "..." if len(prompt) > 100 else prompt
|
457 |
formatted_time = datetime.strptime(timestamp, '%Y-%m-%d %H:%M:%S.%f').strftime('%Y-%m-%d %H:%M')
|
458 |
|
459 |
# HTML 이스케이프 처리
|