dmurali commited on
Commit
ffd122d
1 Parent(s): a347e93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,6 +55,7 @@ def generate_response(prompt, model_type):
55
 
56
 
57
  def my_chatbot(input, history, user_password):
 
58
  valid, message = validate_password(user_password)
59
  if not valid:
60
  return [(input, message)], [], text
@@ -62,7 +63,7 @@ def my_chatbot(input, history, user_password):
62
  history = history or []
63
  output = generate_response(input, model_type)
64
  history.append((input, output))
65
- text = ""
66
  return history, history, text
67
 
68
 
 
55
 
56
 
57
  def my_chatbot(input, history, user_password):
58
+ text = ""
59
  valid, message = validate_password(user_password)
60
  if not valid:
61
  return [(input, message)], [], text
 
63
  history = history or []
64
  output = generate_response(input, model_type)
65
  history.append((input, output))
66
+
67
  return history, history, text
68
 
69