Martin van Dijk commited on
Commit ·
abf3d23
1
Parent(s): af6f5f2
Update space
Browse files1234567891011import gradio as grfrom transformers import pipeline"""For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference"""model = pipeline("text-generation")def predict(prompt):12345678910import gradio as grfrom huggingface_hub import InferenceClient"""For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference"""model = InferenceClient("HuggingFaceH4/zephyr-7b-beta")def predict(prompt):
app.py+2-3