AlyssaD commited on
Commit
9e3fff7
·
verified ·
1 Parent(s): ffeb0c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -106,11 +106,11 @@ def respond(message, history):
106
  response = client.chat_completion(messages, max_tokens=100)
107
  return response['choices'][0]['message']['content'].strip()
108
 
109
- def echo(message, history):
110
- return message
111
 
112
- def yes_or_no(message, history):
113
- return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])
114
 
115
  chatbot = gr.ChatInterface(respond)
116
  # defining my chatbot so that the user can interact and see their conversation history and send new messages
 
106
  response = client.chat_completion(messages, max_tokens=100)
107
  return response['choices'][0]['message']['content'].strip()
108
 
109
+ # def echo(message, history):
110
+ # return message
111
 
112
+ # def yes_or_no(message, history):
113
+ # return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])
114
 
115
  chatbot = gr.ChatInterface(respond)
116
  # defining my chatbot so that the user can interact and see their conversation history and send new messages