akdeniz27 commited on
Commit
025b611
1 Parent(s): e142375

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -66,4 +66,7 @@ else:
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")
 
 
 
 
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
+
70
+ for i, p in enumerate(predictions):
71
+ if i != 0: st.write(f"Question: {question_set[int(p)]}\n\nAnswer: {predictions[p]}\n\n")
72
+