File size: 287 Bytes
0930044 6b9ca5a 0930044 c24b784 0930044 6b9ca5a 0930044 6b9ca5a c24b784 |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
from transformers import pipeline
chatbot = pipeline("conversational", model="dkleczek/bert-base-polish-cased-v1")
def chat_with_bot(message):
return chatbot(message)[0]['generated_text']
gr.Interface(fn=chat_with_bot, inputs="text", outputs="text").launch()
|