Spaces:
Runtime error
Runtime error
Download app.py from anbohan/sentiment_analysis: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/anbohan/sentiment_analysis/resolve/refs%2Fpr%2F1/app.py
- Command line
-
hf download hf://spaces/anbohan/sentiment_analysis@refs/pr/1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/anbohan/sentiment_analysis/resolve/refs%2Fpr%2F1/app.py
319 Bytes
| import gradio as gr | |
| from transformers import pipeline | |
| sentiment = pipeline("sentiment-analysis") | |
| def get_sentiment(input_text): | |
| return sentiment(input_text) | |
| # ์ธํฐํ์ด์ค ์์ฑ ๋ฐ ์คํ | |
| iface7 = gr.Interface(get_sentiment, inputs="text", outputs="text", title="๊ฐ์ ๋ถ์") | |
| iface7.launch(inline=False) |