| 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) | |