seawolf2357 commited on
Commit
e60dde9
·
verified ·
1 Parent(s): b7a824d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- short_prompt = prompt[:100] + "..." if len(prompt) > 100 else short_prompt
 
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 이스케이프 처리