File size: 243 Bytes
bf22482
3930a89
bf22482
04e9040
bf22482
7c263a3
1
2
3
4
5
6
7
import gradio as gr
from transformers import pipeline

pipe = pipeline("text-generation", model="tpzeng/prm800k_llama_joint_checkpoint1000", bad_words_ids=[[128254],[128255]],  max_new_tokens = 1024)

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