README / app.py
Julian-AI's picture
Create app.py
2045dc5 verified
Raw History Blame Contribute Delete
398 Bytes
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()