Update app.py
Browse files
app.py
CHANGED
@@ -392,8 +392,6 @@ def qa_list_gen(claim,srl_list,evidence):
|
|
392 |
# Handle form submission
|
393 |
if submitted and claim_text and evidence_text:
|
394 |
if not claim_text or not evidence_text:
|
395 |
-
st.warning("You need to input both the claim and evidence and then press Submit")
|
396 |
-
else:
|
397 |
st.caption(':green[Kindly hold on for a few minutes while the QA pairs are being generated]')
|
398 |
srl_list = list(itertools.chain(*[list(s) for s in srl(claim_text)]))
|
399 |
qa_list=qa_list_gen(claim_text,srl_list,evidence_text)
|
@@ -455,4 +453,6 @@ if submitted and claim_text and evidence_text:
|
|
455 |
final_df['Misc Claims'] = all_items_misc + [''] * (max_rows - len(all_items_misc))
|
456 |
st.write(f"""Claim : {claim_text}""")
|
457 |
st.write(f"""Evidence : {evidence_text}""")
|
458 |
-
st.table(final_df)
|
|
|
|
|
|
392 |
# Handle form submission
|
393 |
if submitted and claim_text and evidence_text:
|
394 |
if not claim_text or not evidence_text:
|
|
|
|
|
395 |
st.caption(':green[Kindly hold on for a few minutes while the QA pairs are being generated]')
|
396 |
srl_list = list(itertools.chain(*[list(s) for s in srl(claim_text)]))
|
397 |
qa_list=qa_list_gen(claim_text,srl_list,evidence_text)
|
|
|
453 |
final_df['Misc Claims'] = all_items_misc + [''] * (max_rows - len(all_items_misc))
|
454 |
st.write(f"""Claim : {claim_text}""")
|
455 |
st.write(f"""Evidence : {evidence_text}""")
|
456 |
+
st.table(final_df)
|
457 |
+
else:
|
458 |
+
st.warning("You need to input both the claim and evidence and then press Submit")
|