Spaces:
Sleeping
Sleeping
Download app.py from awildergoose/FirstSpace: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/spaces/awildergoose/FirstSpace/resolve/main/app.py
- Command line
-
hf download hf://spaces/awildergoose/FirstSpace/app.py
-
curl -L -o app.py https://huggingface.co/spaces/awildergoose/FirstSpace/resolve/main/app.py
240 Bytes
| 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() | |