Spaces:
Build error
Build error
Download app.py from HOLYBOY/Sentiment_AnalysisApp: direct link, hf CLI and curl.
- Browser
- Download file 841 Bytes
-
https://huggingface.co/spaces/HOLYBOY/Sentiment_AnalysisApp/resolve/main/app.py
- Command line
-
hf download hf://spaces/HOLYBOY/Sentiment_AnalysisApp/app.py
-
curl -L -o app.py https://huggingface.co/spaces/HOLYBOY/Sentiment_AnalysisApp/resolve/main/app.py
841 Bytes
| # ---- Gradio app interface | |
| app = gr.Interface(fn = sentiment_analysis, | |
| inputs = gr.Textbox("Input your tweet to classify or use the example provided below..."), | |
| outputs = "label", | |
| title = "Public Perception of COVID-19 Vaccines", | |
| description = "This app analyzes Perception of text based on tweets about COVID-19 Vaccines using a fine-tuned distilBERT model", | |
| interpretation = "default", | |
| examples = [["The idea of introducing the vaccine is good"], | |
| ["I am definately not taking the jab"], | |
| ["The vaccine is bad and can cause serious health implications"], | |
| ["I dont have any opinion "]] | |
| ) | |
| app.launch(share =True) |