nebiyu29 commited on
Commit
5dd1abe
1 Parent(s): aba270b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ classifier = pipeline("zero-shot-classification", model="MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli")
5
+
6
+ sequence_to_classify = st.text_input("input the cases here")
7
+
8
+ candidate_labels = ["depression", "anxiety", "bipolar disorder", "schizophrenia", "PTSD", "OCD", "ADHD", "autism", "eating disorder", "personality disorder", "phobia"]
9
+
10
+ output = classifier(sequence_to_classify, candidate_labels, multi_label=False)
11
+ st.write(output)