Spaces:
Running
Running
File size: 404 Bytes
dfddde4 01655b3 dfddde4 01655b3 dfddde4 01655b3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
from transformers import pipeline
import gradio as gr
pipeline = pipeline(model = "meta-llama/Llama-3.2-1B-Instruct")
def inference(input):
output = pipeline(input)
return output
app = gr.Interface(
fn = inference,
inputs = [gr.Textbox(label = "Input")],
outputs = [gr.Textbox(label = "Output")],
title = "Demo",
examples = [
["Hello, World."]
]
)
app.launch() |