Xhaheen commited on
Commit
79b83af
·
verified ·
1 Parent(s): e6e726b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -17,6 +17,8 @@ def chat_with_grok(message, history):
17
  """Main chat function"""
18
  if not message:
19
  return history, ""
 
 
20
 
21
  try:
22
  client = setup_client()
@@ -35,6 +37,8 @@ def chat_with_grok(message, history):
35
  )
36
 
37
  response = completion.choices[0].message.content
 
 
38
 
39
  # Add to history
40
  history.append((message, response))
 
17
  """Main chat function"""
18
  if not message:
19
  return history, ""
20
+
21
+ print(f"User message: {message}")
22
 
23
  try:
24
  client = setup_client()
 
37
  )
38
 
39
  response = completion.choices[0].message.content
40
+
41
+ print(f"AI response: {response}")
42
 
43
  # Add to history
44
  history.append((message, response))