GenAIDemo / app.py
mingbaer's picture
initial commit
56a0b2d verified
raw
history blame contribute delete
300 Bytes
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)