Spaces:
Sleeping
Sleeping
File size: 240 Bytes
0da7e69 d2c6751 7aea169 0da7e69 d2c6751 0da7e69 d2c6751 | 1 2 3 4 5 6 7 8 9 10 11 12 | import gradio as gr
import json
from transformers import pipeline
pipe = pipeline("text-classification")
def classify(inp):
return json.dumps(pipe(inp))
iface = gr.Interface(fn=classify, inputs="text", outputs="text")
iface.launch()
|