austenem commited on
Commit
6bfdad2
·
verified ·
1 Parent(s): 90dbc0f
Files changed (1) hide show
  1. app.py +17 -7
app.py CHANGED
@@ -1,15 +1,25 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- arg_pipeline = pipeline("text-generation", model="austenem/Llama-2-7b-arg-quality")
 
5
 
6
- st.title("Arg Quality Ranker")
7
- st.write("Enter an argument and topic to analyze argument quality:")
 
8
 
9
- st.write("Argument:")
10
- user_argument = st.text_input("", key="argument")
11
- st.write("Topic:")
12
- user_topic = st.text_input("", key="topic")
 
 
 
 
 
 
 
 
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: