Spaces:
Runtime error
Runtime error
Delete app.py
Browse files
app.py
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
"""Untitled0.ipynb
|
3 |
-
|
4 |
-
Automatically generated by Colaboratory.
|
5 |
-
|
6 |
-
Original file is located at
|
7 |
-
https://colab.research.google.com/drive/11yu4PjWlTi9Uc7qsh3MWHiRl4-Ywdg8p
|
8 |
-
"""
|
9 |
-
|
10 |
-
ex1=["I feel like I don't have the energy to do anything."]
|
11 |
-
ex2=["I feel so sad lately. I haven't eaten lunch yet."]
|
12 |
-
|
13 |
-
gr.Interface.load("huggingface/ShreyaR/finetuned-roberta-depression",
|
14 |
-
title="Depression Detector",
|
15 |
-
description="Label 1 suggests that the user may have depression",
|
16 |
-
examples=[ex1,ex2],
|
17 |
-
allow_flagging="never").launch(inbrowser=True)
|
18 |
-
|
19 |
-
import gradio as gr
|
20 |
-
|
21 |
-
!pip install transformers gradio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|