Spaces:
Sleeping
Sleeping
austen_em
commited on
Commit
·
c74d344
1
Parent(s):
868c45e
test without import
Browse files
app.py
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
-
from transformers import pipeline
|
3 |
-
from PIL import Image
|
4 |
|
5 |
-
arg_pipeline = pipeline(task="text-generation", model="austenem/Llama-2-7b-arg-quality")
|
6 |
|
7 |
st.title("Arg Quality Ranker")
|
8 |
st.write("Enter an argument and topic to analyze argument quality:")
|
@@ -10,7 +9,7 @@ st.write("Enter an argument and topic to analyze argument quality:")
|
|
10 |
user_argument = st.text_input("")
|
11 |
user_topic = st.text_input("")
|
12 |
|
13 |
-
if user_argument and user_topic:
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
1 |
import streamlit as st
|
2 |
+
# from transformers import pipeline
|
|
|
3 |
|
4 |
+
# arg_pipeline = pipeline(task="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:")
|
|
|
9 |
user_argument = st.text_input("")
|
10 |
user_topic = st.text_input("")
|
11 |
|
12 |
+
# if user_argument and user_topic:
|
13 |
+
# user_input = f"Below is an argument and the topic it relates to. Please rate the quality of the argument on a scale of 0 to 1, where 0 is very poor and 1 is very good. \n ### Argument: {user_argument} \n ### Topic: {user_topic} \n ### Score: "
|
14 |
+
# result = arg_pipeline(user_input)
|
15 |
+
# st.write(result[0]["text"])
|