import gradio as gr from transformers import pipeline # Load Hugging Face model chatbot = pipeline("text-generation", model="gpt2") # Replace with your chosen model def respond(message, history): response = chatbot(message, max_length=100)[0]['generated_text'] return response # Gradio interface demo = gr.ChatInterface(fn=respond, title="Julian AI Organization Chatbot") demo.launch()