Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
ex1=["I feel like I don't have the energy to do anything."]
|
4 |
+
ex2=["I feel so sad lately. I haven't eaten lunch yet."]
|
5 |
+
|
6 |
+
gr.Interface.load("huggingface/ShreyaR/finetuned-roberta-depression",
|
7 |
+
title="Depression Detector",
|
8 |
+
description="Label 1 suggests that the user may have depression",
|
9 |
+
examples=[ex1,ex2],
|
10 |
+
allow_flagging="never").launch(inbrowser=True)
|