Spaces:
Runtime error
Runtime error
Download app.py from sanaghani12/TextEmotion-Detect: direct link, hf CLI and curl.
- Browser
- Download file 936 Bytes
-
https://huggingface.co/spaces/sanaghani12/TextEmotion-Detect/resolve/main/app.py
- Command line
-
hf download hf://spaces/sanaghani12/TextEmotion-Detect/app.py
-
curl -L -o app.py https://huggingface.co/spaces/sanaghani12/TextEmotion-Detect/resolve/main/app.py
936 Bytes
| import gradio as gr | |
| title = "Classify text according to emotion" | |
| description = "Emotion text classification via bert-base finetuned by bhadresh-savani" | |
| examples = [ | |
| ["Remember before Twitter when you took a photo of food, got the film developed, then drove around showing everyone the pic? No? Me neither."], | |
| ['''"We are all here because we're committed to the biggest question of all: What's out there?" Take your first steps toward answering that question by watching our Gameplay Reveal from the #XboxBethesda Showcase. '''], | |
| ["A STUNNER IN KNOXVILLE! 😱 Notre Dame takes down No. 1 Tennessee for its first trip to Omaha in 20 years‼️"], | |
| ["you and I best moment is yet to come 💜 #BTS9thAnniversary"] | |
| ] | |
| interface = gr.load("huggingface/bhadresh-savani/bert-base-go-emotion", | |
| title=title, | |
| description=description, | |
| examples = examples | |
| ) | |
| interface.launch(enable_queue=True) | |