Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
mtzig
/
test
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
d371902
test
/
app.py
mtzig
change device
d371902
2 months ago
raw
Copy download link
history
blame
229 Bytes
import
gradio
as
gr
from
transformers
import
pipeline
pipe = pipeline(
"text-generation"
, model=
"tpzeng/prm800k_llama_joint_checkpoint1000"
, bad_words_ids=[[
128254
],[
128255
]], device=
0
)
gr.Interface.from_pipeline(pipe).launch()