mavinsao commited on
Commit
35bd57e
·
verified ·
1 Parent(s): 73a9cf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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/mi-roberta-base-finetuned-classification")
7
- pipe_2 = pipeline("text-classification", model="mavinsao/roberta-mental-finetuned")
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']