dmurali commited on
Commit
c04d2bd
1 Parent(s): 472a685

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,13 +57,13 @@ def generate_response(prompt, model_type):
57
  def my_chatbot(input, history, user_password):
58
  valid, message = validate_password(user_password)
59
  if not valid:
60
- return [(input, message)], []
61
  model_type='gpt-4o-2024-05-13'
62
  history = history or []
63
  output = generate_response(input, model_type)
64
  history.append((input, output))
65
  text = ""
66
- return history, history
67
 
68
 
69
 
 
57
  def my_chatbot(input, history, user_password):
58
  valid, message = validate_password(user_password)
59
  if not valid:
60
+ return [(input, message)], [], text
61
  model_type='gpt-4o-2024-05-13'
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
 
69