Spaces:
Runtime error
Runtime error
Download app.py from pog/Depression-Detector: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/spaces/pog/Depression-Detector/resolve/main/app.py
- Command line
-
hf download hf://spaces/pog/Depression-Detector/app.py
-
curl -L -o app.py https://huggingface.co/spaces/pog/Depression-Detector/resolve/main/app.py
469 Bytes
| import gradio as gr | |
| ex1=["I feel like I don't have the energy to do anything."] | |
| ex2=["I feel so sad lately. I haven't eaten lunch yet."] | |
| gr.Interface.load("huggingface/ShreyaR/finetuned-roberta-depression", | |
| title="Depression Detector", | |
| description="Label 1 suggests that the user may have depression (model taken from ShreyaR)", | |
| examples=[ex1,ex2], | |
| allow_flagging="never").launch(inbrowser=True) |