Prompthumanizer commited on
Commit
cbabf7a
Β·
verified Β·
1 Parent(s): 8376b0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -991,7 +991,19 @@ def create_jain_interface():
991
 
992
  try:
993
  response, updated_history = jain.process_thought(message, history)
994
- return updated_history, ""
 
 
 
 
 
 
 
 
 
 
 
 
995
  except Exception as e:
996
  error_response = f"μ£„μ†‘ν•©λ‹ˆλ‹€. 처리 쀑 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€: {str(e)}"
997
  history.append([message, error_response])
 
991
 
992
  try:
993
  response, updated_history = jain.process_thought(message, history)
994
+ # 응닡을 더 μžμ—°μŠ€λŸ½κ³  λ§€λ ₯적으둜 보이게 κ°•ν™”
995
+ enhanced_response = (
996
+ f"🧠 생각 쀑... μ™„λ£Œ!\n\n"
997
+ f"{response.strip()}"
998
+ )
999
+ # 이λͺ¨μ§€ 및 μ‹œκ°μ  μš”μ†Œ μΆ”κ°€ (λŒ€ν™” 톀에 맞게)
1000
+ if "?" in message:
1001
+ enhanced_response = "πŸ€” " + enhanced_response
1002
+ elif any(word in message.lower() for word in ["κ³ λ§ˆμ›Œ", "감사", "謝"]):
1003
+ enhanced_response = "😊 " + enhanced_response + "\n\n항상 λ„μ™€λ“œλ¦΄ μ€€λΉ„κ°€ λ˜μ–΄ μžˆμ–΄μš”!"
1004
+
1005
+ # μ΅œμ’… νžˆμŠ€ν† λ¦¬μ— λ©‹μ§€κ²Œ μΆ”κ°€
1006
+ return updated_history, ""
1007
  except Exception as e:
1008
  error_response = f"μ£„μ†‘ν•©λ‹ˆλ‹€. 처리 쀑 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€: {str(e)}"
1009
  history.append([message, error_response])