Spaces:
Sleeping
Sleeping
File size: 367 Bytes
a27bb4a ff50136 a27bb4a 7c980a6 1bc9a42 2f008ec 1bc9a42 7c980a6 1bc9a42 |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
from transformers import pipeline
def counsel_chat(message, history):
pipeline_model = pipeline("text-generation", model="freud-sensei/counsel_chatbot")
sentence = f"질문: {message} 답변:"
answer = pipeline_model(sentence)
return answer[0]["generated_text"][len(sentence):]
chatbot2 = gr.ChatInterface(counsel_chat)
chatbot2.launch() |