gera commited on
Commit
b138a26
1 Parent(s): 21099ff

having some fun

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -35,6 +35,9 @@ def chat(user_message, history, state, long_or_short):
35
  )
36
 
37
  details = ""
 
 
 
38
  if long_or_short == ANS_SHORT:
39
  details = "Please make a complete but short answer"
40
  elif long_or_short == ANS_LONG:
 
35
  )
36
 
37
  details = ""
38
+ if state["user"] != "anonymous":
39
+ details += f"User's name is {state['user']}."
40
+
41
  if long_or_short == ANS_SHORT:
42
  details = "Please make a complete but short answer"
43
  elif long_or_short == ANS_LONG: