Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from transformers import pipeline | |
| def greet(name): | |
| pipe = pipeline('text-classification') | |
| result = pipe(name) | |
| return result | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| demo.launch() | |