evelyn / testing_ui_interface /simple_gradio_interface.py
evelyn-lo's picture
Upload folder using huggingface_hub
37c870e verified
import gradio as gr
def chatbot(message, history):
# This is a simple echo bot for demonstration
# In a real scenario, you'd integrate with a language model here
return f"Bot: You said: {message}"
# Create the Gradio interface
iface = gr.ChatInterface(
fn=chatbot,
title="Simple Chatbot",
description="This is a simple echo chatbot. Type a message and the bot will respond.",
)
# Launch the interface
iface.launch()