import gradio as gr def chat_with_kiki_gpt(user_input): return f"KIKI-GPT: {user_input}" interface = gr.Interface( fn=chat_with_kiki_gpt, inputs=gr.inputs.Textbox(lines=5, placeholder="Type your message to KIKI-GPT here..."), outputs=gr.outputs.Textbox(), title="KIKI-GPT", description="Welcome to KIKI-GPT - a project on HuggingFace Spaces using Microsoft's DialoGPT. One of the fastest and best performing models for robotics! Created by Keyvan Hardani. For inquiries, contact: hello@keyvan.ai.", live=True ) interface.load("models/microsoft/DialoGPT-medium") interface.launch()