import random import gradio as gr def random_response(message, history): return random.choice(["Yes", "No"]) # Create the chat interface with a custom title and icons demo = gr.ChatInterface( random_response, type="messages", title="100xEngineers Support Bot", ) if __name__ == "__main__": demo.launch(show_error=True)