File size: 233 Bytes
8b5dc32
cf8456d
8b5dc32
cf8456d
8b5dc32
cf8456d
8b5dc32
1
2
3
4
5
6
7
from transformers import pipeline
import gradio as gr

pipe = pipeline("translation", model="huggingface-projects/llama-2-7b-chat", token="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")

demo = gr.Interface.from_pipeline(pipe)
demo.launch()