Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from transformers import pipeline
|
|
3 |
import streamlit as st
|
4 |
import streamlit.components.v1 as components
|
5 |
|
6 |
-
pipe_1 = pipeline("text-classification", model="mavinsao/
|
7 |
-
pipe_2 = pipeline("text-classification", model="mavinsao/roberta-mental-
|
8 |
|
9 |
|
10 |
# Streamlit app with background image
|
@@ -28,6 +28,7 @@ def ensemble_predict(text):
|
|
28 |
results_2 = pipe_2(text)
|
29 |
|
30 |
ensemble_scores = {}
|
|
|
31 |
for results in [results_1, results_2]: # Iterate through predictions
|
32 |
for result in results:
|
33 |
label = result['label']
|
|
|
3 |
import streamlit as st
|
4 |
import streamlit.components.v1 as components
|
5 |
|
6 |
+
pipe_1 = pipeline("text-classification", model="mavinsao/roberta-base-finetuned-mental-health")
|
7 |
+
pipe_2 = pipeline("text-classification", model="mavinsao/mi-roberta-base-finetuned-mental-health")
|
8 |
|
9 |
|
10 |
# Streamlit app with background image
|
|
|
28 |
results_2 = pipe_2(text)
|
29 |
|
30 |
ensemble_scores = {}
|
31 |
+
|
32 |
for results in [results_1, results_2]: # Iterate through predictions
|
33 |
for result in results:
|
34 |
label = result['label']
|