Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|