Towhidul commited on
Commit
48ac9c9
·
1 Parent(s): a3eabb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -9
app.py CHANGED
@@ -25,8 +25,8 @@ def query_evidence(payload):
25
  st.title('Welcome to :blue[FACTIFY - 5WQA] ')
26
  st.header('5W Aspect-based Fact Verification through Question Answering :blue[Web Demo]')
27
  st.subheader('Here are a few steps to begin exploring and interacting with this demo.')
28
- st.caption('First you need to input your claim and press :green[ctrl+enter].')
29
- st.caption('Then you need to input your evidence and press :green[ctrl+enter].')
30
  st.caption('Upon completing these two steps, kindly wait for a minute to receive the results.')
31
 
32
  st.caption('Start by inputting the following instance of a claim and corresponding evidence into the designated text fields.')
@@ -54,22 +54,26 @@ when he mistakenly rehydrates them with heavy water contaminated with atomic was
54
  regularly used to recharge the Batcave s atomic pile . ''')
55
 
56
  #-----------------------------------------------------------
57
- def proc():
58
- st.write(st.session_state.text_key)
59
 
60
- # st.text_area('enter text', on_change=proc, key='text_key')
61
 
62
 
63
- claim_text=st.text_area("Enter your claim:", on_change=proc, key='text_key')
 
 
 
 
64
 
65
 
66
 
67
 
68
  # evidence_text=st.text_area("Enter your evidence:")
69
 
70
- form = st.form(key='my_form')
71
- form.text_input(label='Enter your evidence')
72
- evidence_text = form.form_submit_button(label='Submit')
73
 
74
  if evidence_text:
75
  st.caption(':green[Kindly hold on for a few minutes while the QA pairs are being generated]')
 
25
  st.title('Welcome to :blue[FACTIFY - 5WQA] ')
26
  st.header('5W Aspect-based Fact Verification through Question Answering :blue[Web Demo]')
27
  st.subheader('Here are a few steps to begin exploring and interacting with this demo.')
28
+ st.caption('First you need to input your claim and press **:green[Submit]**.')
29
+ st.caption('Then you need to input your evidence and press **:green[Submit]**.')
30
  st.caption('Upon completing these two steps, kindly wait for a minute to receive the results.')
31
 
32
  st.caption('Start by inputting the following instance of a claim and corresponding evidence into the designated text fields.')
 
54
  regularly used to recharge the Batcave s atomic pile . ''')
55
 
56
  #-----------------------------------------------------------
57
+ # def proc():
58
+ # st.write(st.session_state.text_key)
59
 
60
+ # # st.text_area('enter text', on_change=proc, key='text_key')
61
 
62
 
63
+ # claim_text=st.text_area("Enter your claim:", on_change=proc, key='text_key')
64
+
65
+ form_claim = st.form(key='my_claim')
66
+ form_claim.text_input(label='Enter your claim')
67
+ claim_text = form_claim.form_submit_button(label='Submit')
68
 
69
 
70
 
71
 
72
  # evidence_text=st.text_area("Enter your evidence:")
73
 
74
+ form_evidence = st.form(key='my_evidence')
75
+ form_evidence.text_input(label='Enter your evidence')
76
+ evidence_text = form_evidence.form_submit_button(label='Submit')
77
 
78
  if evidence_text:
79
  st.caption(':green[Kindly hold on for a few minutes while the QA pairs are being generated]')