Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| # from transformers import pipeline | |
| # arg_pipeline = pipeline(task="text-generation", model="austenem/Llama-2-7b-arg-quality") | |
| st.title("Arg Quality Ranker") | |
| st.write("Enter an argument and topic to analyze argument quality:") | |
| user_argument = st.text_input("", key="argument") | |
| user_topic = st.text_input("", key="topic") | |
| # if user_argument and user_topic: | |
| # 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: " | |
| # result = arg_pipeline(user_input) | |
| # st.write(result[0]["text"]) | |