Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -135,13 +135,13 @@ selected_question = st.selectbox('Choose one of the queries from the CUAD datase
|
|
135 |
question_set = [questions[0], selected_question]
|
136 |
contract_type = st.radio("Select Contract", ("Sample Contract", "New Contract"))
|
137 |
|
138 |
-
if contract_type == "
|
139 |
sample_contract_num = st.slider("Select Sample Contract #")
|
140 |
contract = contracts[sample_contract_num]
|
141 |
with st.expander(f"Sample Contract #{sample_contract_num}"):
|
142 |
st.write(contract)
|
143 |
else:
|
144 |
-
contract = st.text_area("
|
145 |
Run_Button = st.button("Run", key=None)
|
146 |
if Run_Button == True and not len(contract)==0 and not len(question_set)==0:
|
147 |
predictions = run_prediction(question_set, contract, 'akdeniz27/roberta-base-cuad')
|
|
|
135 |
question_set = [questions[0], selected_question]
|
136 |
contract_type = st.radio("Select Contract", ("Sample Contract", "New Contract"))
|
137 |
|
138 |
+
if contract_type == "Sample Contract":
|
139 |
sample_contract_num = st.slider("Select Sample Contract #")
|
140 |
contract = contracts[sample_contract_num]
|
141 |
with st.expander(f"Sample Contract #{sample_contract_num}"):
|
142 |
st.write(contract)
|
143 |
else:
|
144 |
+
contract = st.text_area("Input New Contract", "", height=256)
|
145 |
Run_Button = st.button("Run", key=None)
|
146 |
if Run_Button == True and not len(contract)==0 and not len(question_set)==0:
|
147 |
predictions = run_prediction(question_set, contract, 'akdeniz27/roberta-base-cuad')
|