Fetching metadata from the HF Docker repository...
-
Delete app.py
import gradio as gr
from transformers import pipeline
# Load a pretrained conversational model
chatbot = pipeline("conversational", model="microsoft/DialoGPT-medium")
def chat(input_text):
response = chatbot(input_text)[0]['generated_text']
return response
# Gradio interface
iface = gr.Interface(
fn=chat,
inputs=gr.Textbox(lines=2, placeholder="Say something..."),
outputs="text",
title="EllaMar's Chatbot",
description="A simple conversational AI bot powered by Hugging Face"
)
iface.launch() -
initial commit
-
Duplicate from gradio-templates/chatbot

EllaMar +1: pngwn Co-authored-by: Pete <pngwn@users.noreply.huggingface.co>