Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,11 @@ import gradio
|
|
2 |
def chatbot(input_text):
|
3 |
if input_text.lower() == "hello":
|
4 |
return "Hello, how can i help you."
|
5 |
-
|
6 |
return "I'm doing well, thank you for asking."
|
7 |
-
|
8 |
return "Goodbye! Have a great day."
|
9 |
-
|
10 |
return "I'm sorry, I don't understand. Could you please rephrase your question?."
|
11 |
|
12 |
demo = gradio.Interface(fn=chatbot, inputs="text", outputs="text", title="Chatbot")
|
|
|
2 |
def chatbot(input_text):
|
3 |
if input_text.lower() == "hello":
|
4 |
return "Hello, how can i help you."
|
5 |
+
elif input_text.lower() == "how are you":
|
6 |
return "I'm doing well, thank you for asking."
|
7 |
+
elif input_text.lower() == "bye":
|
8 |
return "Goodbye! Have a great day."
|
9 |
+
else:
|
10 |
return "I'm sorry, I don't understand. Could you please rephrase your question?."
|
11 |
|
12 |
demo = gradio.Interface(fn=chatbot, inputs="text", outputs="text", title="Chatbot")
|