Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,5 @@ else:
|
|
65 |
|
66 |
Run_Button = st.button("Run", key=None)
|
67 |
if Run_Button == True and not len(contract)==0 and not len(question_set)==0:
|
68 |
-
|
69 |
predictions = run_prediction(question_set, contract, 'akdeniz27/roberta-base-cuad')
|
70 |
-
|
71 |
-
for i, p in enumerate(predictions):
|
72 |
-
st.write(f"Question {i}: {question_set[int(p)]}\nAnswer: {predictions[p]}\n\n")
|
|
|
65 |
|
66 |
Run_Button = st.button("Run", key=None)
|
67 |
if Run_Button == True and not len(contract)==0 and not len(question_set)==0:
|
|
|
68 |
predictions = run_prediction(question_set, contract, 'akdeniz27/roberta-base-cuad')
|
69 |
+
st.write(f"Question: {question_set[1]}\n\n Answer: {predictions[1]}\n")
|
|
|
|