Spaces:
Runtime error
Runtime error
File size: 241 Bytes
028cf00 d9daddd 89a14cf d9daddd 62d0599 d9daddd 1d4f62b d9daddd |
1 2 3 4 5 6 7 8 9 |
import os
import gradio as gr
from transformers import pipeline
hf_token = os.getenv("HF_TOKEN")
pipe = pipeline("conversational", model="meta-llama/Llama-2-7b-chat-hf", token=hf_token)
demo = gr.Interface.from_pipeline(pipe)
demo.launch() |