File size: 344 Bytes
def81e4 78bc825 def81e4 53d405e 78bc825 53d405e 78bc825 |
1 2 3 4 5 6 7 8 9 |
import gradio as gr
from transformers import pipeline
pipe = pipeline(task="text-generation",
model="meta-llama/Meta-Llama-3-8B")
gr.Interface.from_pipeline(pipe,
title="TextGen",
description="Using pipeline with Llama3",
).launch(inbrowser=True) |