import gradio as gr def cyberpunk_bot(user_input): responses = { "hello": "Hey there, choomba! Welcome to Night City. How can I help you today?", "who are you": "I'm V, your guide in this neon jungle. What do you need?", "tell me about night city": "Night City is a vibrant, dystopian metropolis. It’s the place where dreams are made and broken. What do you want to know specifically?", "bye": "Stay safe out there, choomba. See you in Night City!", "default": "I'm not sure how to respond to that. Try asking something else about Night City or me." } user_input_lower = user_input.lower() return responses.get(user_input_lower, responses["default"]) demo = gr.Interface( fn=cyberpunk_bot, inputs=gr.inputs.Textbox(lines=2, placeholder="Type your message here..."), outputs="text", title="Cyberpunk 2077 Chatbot", description="Interact with V, your guide in Night City!" ) demo.launch()