Spaces:
Sleeping
Sleeping
tester
Browse files
app.py
CHANGED
@@ -1,15 +1,25 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
8 |
|
9 |
-
st
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# st.write("Score:")
|
15 |
# if user_argument and user_topic:
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipe = pipeline('sentiment-analysis')
|
5 |
+
text = st.text_area('enter text:')
|
6 |
|
7 |
+
if text:
|
8 |
+
out = pipe(text)
|
9 |
+
st.json(out)
|
10 |
|
11 |
+
# import streamlit as st
|
12 |
+
# from transformers import pipeline
|
13 |
+
|
14 |
+
# arg_pipeline = pipeline("text-generation", model="austenem/Llama-2-7b-arg-quality")
|
15 |
+
|
16 |
+
# st.title("Arg Quality Ranker")
|
17 |
+
# st.write("Enter an argument and topic to analyze argument quality:")
|
18 |
+
|
19 |
+
# st.write("Argument:")
|
20 |
+
# user_argument = st.text_input("", key="argument")
|
21 |
+
# st.write("Topic:")
|
22 |
+
# user_topic = st.text_input("", key="topic")
|
23 |
|
24 |
# st.write("Score:")
|
25 |
# if user_argument and user_topic:
|