GarimaPuri01 commited on
Commit
a46bded
·
verified ·
1 Parent(s): 072c956

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- 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")
 
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")