WICKED4950 commited on
Commit
1de0b1f
·
verified ·
1 Parent(s): d357694

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -73,8 +73,16 @@ def respond(message, history):
73
  print(response)
74
  # Gradio Chat Interface Setup
75
  demo = gr.ChatInterface(
76
- respond
 
 
 
 
 
77
  )
78
 
 
 
 
79
  if __name__ == "__main__":
80
  demo.launch()
 
73
  print(response)
74
  # Gradio Chat Interface Setup
75
  demo = gr.ChatInterface(
76
+ fn=respond, # Response handler function
77
+ title="Chat with Esther", # Add a title
78
+ description="A friendly chatbot ready to help and chat with you! 😊", # Brief description
79
+ theme="compact", # Options: "compact", "default", "dark"
80
+ input_placeholder="Type your message here...", # Placeholder text
81
+ clear_button=True, # Enable 'Clear Chat' button
82
  )
83
 
84
+ # Launch the interface
85
+ demo.launch()
86
+
87
  if __name__ == "__main__":
88
  demo.launch()