File size: 300 Bytes
56a0b2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
from huggingface_hub import InferenceClient
client = InferenceClient.("HuggingFaceH4/zephyr-7b-beta")
def respond(message, history):
messages = [{"role": "system", "content": "You are a friendly chatbot."}]
if history:
messages.extend(history)
|