merve HF staff commited on
Commit
96af6c4
·
1 Parent(s): 50c31a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -73,15 +73,10 @@ if input:
73
  "Sorry, I didn't understand you, maybe you could ask differently? 🤓 Try asking 'What should I use to extract name in a document' 🤗"]
74
  bot_answer = random.choice(fallback_template)
75
  message_history.append({"text":bot_answer, "is_user" : False})
76
-
77
  with placeholder.container():
78
  last_message = message_history[-1]
79
- try:
80
- pen_message = message_history[-2]
81
- except:
82
- pen_message = ""
83
  if last_message:
84
- message(pen_message["text"], pen_message["is_user"])
85
  message(last_message["text"], last_message["is_user"])
86
 
87
 
 
73
  "Sorry, I didn't understand you, maybe you could ask differently? 🤓 Try asking 'What should I use to extract name in a document' 🤗"]
74
  bot_answer = random.choice(fallback_template)
75
  message_history.append({"text":bot_answer, "is_user" : False})
76
+
77
  with placeholder.container():
78
  last_message = message_history[-1]
 
 
 
 
79
  if last_message:
 
80
  message(last_message["text"], last_message["is_user"])
81
 
82