Spaces:
Sleeping
Sleeping
digitalframmt
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,8 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipe = pipeline(
|
5 |
-
|
6 |
-
|
7 |
-
tokenizer = AutoTokenizer.from_pretrained("ssary/XLM-RoBERTa-German-sentiment")
|
8 |
-
model = AutoModelForSequenceClassification.from_pretrained("ssary/XLM-RoBERTa-German-sentiment")
|
9 |
-
|
10 |
-
text = st.text_area('Wie würdest du deinen Lernerfolg in der Lernreihe beschreiben?')
|
11 |
|
12 |
if text:
|
13 |
out = pipe(text)
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipe = pipeline('sentiment-analysis')
|
5 |
+
text = st.text_area('Wie würdest du deinen Lernerfolg in der Lernreihe beschreiben? (Input sollte nur auf Englisch erfolgen, das Model ist unzureichend mit deutschen Daten trainiert worden, es finden sich aber auch Modelle mit deutschen Trainingsdaten, sind aber nicht so akkurat')
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
if text:
|
8 |
out = pipe(text)
|