Spaces:
Sleeping
Sleeping
Download app.py from onemriganka/tought_analysis: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/spaces/onemriganka/tought_analysis/resolve/main/app.py
- Command line
-
hf download hf://spaces/onemriganka/tought_analysis/app.py
-
curl -L -o app.py https://huggingface.co/spaces/onemriganka/tought_analysis/resolve/main/app.py
471 Bytes
| import gradio as gr | |
| from transformers import pipeline | |
| sentiment = pipeline("sentiment-analysis") | |
| def get_sentiment(input_text): | |
| return sentiment(input_text) | |
| iface = gr.Interface(fn = get_sentiment, | |
| inputs = "text", | |
| outputs = ['text'], | |
| title = 'Thought analysis', | |
| description = "Hi type a sentence, i will tell the sentiment of the sentence ...") | |
| iface.launch(inline = False) |