simplechat / app.py
alanatucumberlands's picture
Update app.py
58bdce7 verified
raw
history blame contribute delete
595 Bytes
import gradio as gr
from huggingface_hub import InferenceClient
"""
This chatbot is based the contents of https://www.gradio.app/guides/creating-a-chatbot-fast.
"""
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
def simple_respond(message,history):
return f"I only say Hi, regardless of what message that is passed in, like {message}"
"""
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
"""
demo = gr.ChatInterface(
simple_respond,
type="messages"
)
if __name__ == "__main__":
demo.launch()