Towhidul commited on
Commit
18edfec
1 Parent(s): 00765ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -46,16 +46,26 @@ st.caption(''':green[Evidence:] :point_right: As of 26 April 2020 , there have b
46
 
47
  #-----------------------------------------------------------------------------------------------
48
  st.caption('**Example 3**')
49
- st.caption(''':green[Claim:] :point_right: More than 100 people had recovered from the coronavirus in Karnataka by April 26, 2020.''')
50
 
51
- st.caption(''':green[Evidence:] :point_right: As of 26 April 2020 , there have been 500 confirmed cases with 158 recoveries and 18 deaths in the state.''')
 
 
 
52
 
53
  #-----------------------------------------------------------
54
- claim_text=st.text_area("Enter your claim:")
 
 
 
 
 
 
55
 
56
  evidence_text=st.text_area("Enter your evidence:")
57
 
58
  if evidence_text:
 
59
  st.caption(':blue[At times, you may encounter null/none outputs, which could be a result of a delay in loading the models through the API. If you experience this problem, kindly try again after a few minutes.]')
60
 
61
 
 
46
 
47
  #-----------------------------------------------------------------------------------------------
48
  st.caption('**Example 3**')
49
+ st.caption(''':green[Claim:] :point_right: In Batman, Penguin hydrates the henchmen with water contaminated with atomic waste.''')
50
 
51
+ st.caption(''':green[Evidence:] :point_right: And Penguin even schemes his way into the Batcave along with five dehydrated henchmen ;
52
+ this plan fails when the henchmen are unexpectedly killed
53
+ when he mistakenly rehydrates them with heavy water contaminated with atomic waste ,
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
  evidence_text=st.text_area("Enter your evidence:")
66
 
67
  if evidence_text:
68
+ st.caption(':green[Kindly hold on for a few minutes while the QA pairs are being generated]')
69
  st.caption(':blue[At times, you may encounter null/none outputs, which could be a result of a delay in loading the models through the API. If you experience this problem, kindly try again after a few minutes.]')
70
 
71