Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Disclaimer bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sankalpsrv committed Mar 10, 2024
1 parent b0d6b4e commit 0738ef3
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 101 deletions.
13 changes: 10 additions & 3 deletions Streamlit/Schematise.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,19 @@ def main():
if __name__ == "__main__":

buttonpress = False
st.error("Disclaimer: This is an AI application that will generate XML output for a law inputted by you. It is not a replacement for legal advice.")

buttonpress= st.button("Yes, I understand. Please take me to the application")
if 'disclaimer' not in st.session_state:
st.session_state['disclaimer'] = False

if st.session_state['disclaimer'] is False:

st.error("Disclaimer: This is an AI application that will generate XML output for a law inputted by you. It is not a replacement for legal advice.")

buttonpress= st.button("Yes, I understand. Please take me to the application")

if buttonpress is True:
if buttonpress is True or st.session_state['disclaimer'] is True:
st.error("You have accepted the disclaimer.")
st.session_state['disclaimer'] = True
main()


Expand Down
69 changes: 30 additions & 39 deletions Streamlit/_cache/old_text_value_1.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,32 @@
<portion includedIn="/akn/us/act/title_7">
<portion includedIn="/akn/us/act/title_6">
<portionBody>
<chapter GUID="id7d1d2ae15-f639-11e2-8470-abc29ba29c4d" eId="chp_7">
<num>CHAPTER 7—</num>
<heading>PROVISIONS TO BE CONTAINED IN CONSTITUTION OR RULES OF TRADE UNION</heading>
<intro>
<toc>
<tocItem href="" level="1">
<span>Sec.</span>
</tocItem>
<tocItem href="#sec_7" level="1">
<span>7.</span>
<span>Provisions to be contained in constitution or rules of Trade Union.</span>
</tocItem>
</toc>
</intro>


<section GUID="id7d1d2fc3c-f639-11e2-8470-abc29ba29c4d" eId="sec_7">
<num>§ 7.</num>
<heading>Provisions to be contained in constitution or rules of Trade Union</heading>
<content>
<p> A Trade Union shall not be entitled to registration under this Code, unless the executive thereof is constituted in accordance with the provisions of this Code, and the rules of the Trade Union provide for the following matters, namely:</p>
<p> - the name of the Trade Union;</p>
<p> - the whole of the objects for which the Trade Union has been established;</p>
<p> - the whole of the purposes for which the general funds of the Trade Union shall be applicable, all of which purposes shall be purposes to which such funds are lawfully applicable under this Code;</p>
<p> - the maintenance of a list of members of the Trade Union and adequate facilities for the inspection thereof by the office-bearers and members of the Trade Union;</p>
<p> - the admission of ordinary members (irrespective of their craft or category) who shall be persons actually engaged or employed in the industrial establishment, undertaking or industry, or units, branches or offices of an industrial establishment, as the case may be, with which the Trade Union is connected, and also the admission of such number of honorary or temporary members, who are not such workers, as are not permitted under section 21 to be office-bearers to form the executive of the Trade Union;</p>
<p> - the payment of a subscription by members of the Trade Union from such members and others, as may be prescribed;</p>
<p> - the conditions under which any member shall be entitled to any benefit assured by the rules and under which any fine or forfeiture may be imposed on any member;</p>
<p> - the annual general body meeting of the members of the Trade Union, the business to be transacted at such meeting, including the election of office-bearers of the Trade Union;</p>
<p> - the manner in which the members of the executive and the other office-bearers of the Trade Union shall be elected once in a period of every three years and removed, and filling of casual vacancies;</p>
<p> - the safe custody of the funds of the Trade Union, an annual audit, in such manner as may be prescribed, of the accounts thereof, and adequate facilities for the inspection of the account books by the office-bearers and members of the Trade Union;</p>
<p> - the manner in which the rules shall be amended, varied or rescinded; and</p>
<p> - the manner in which the Trade Union may be dissolved.</p>
</content>
</section>
</chapter>
</portionBody>
</portion>
<chapter GUID="idd1d2ae15-f639-11e2-8470-abc29ba29c4d" eId="chp_6">
<num>CHAPTER 6—</num>
<heading>E-WASTE MANAGEMENT</heading>
<intro>
<toc>
<tocItem href="" level="1">
<span>Sec.</span>
</tocItem>
<tocItem href="#sec_601" level="1">
<span>601.</span>
<span>Definitions.</span>
</tocItem>
<tocItem href="#sec_602" level="1">
<span>602.</span>
<span>Responsibilities of collection centres.</span>
</tocItem>
</toc>
</intro>

<section GUID="idd1d2fc3c-f639-11e2-8470-abc29ba29c4d" eId="sec_602">
<num>§ 602.</num>
<heading>Responsibilities of collection centres</heading>
<content>
<p>Collection centres shall collect e-waste on behalf of producer or dismantler or recycler or refurbisher including those arising from orphaned products; Provided the collection centres established by producer can also collect e-waste on behalf of dismantler, refurbisher and recycler including those arising from orphaned products.</p>
</content>
</section>
</chapter>
</portionBody>
</portion>
</akomaNtoso>
21 changes: 11 additions & 10 deletions Streamlit/_cache/old_text_value_2.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<fragment>
<section GUID="idd1d2ae15-f639-11e2-8470-abc29ba29c4d" eId="sec_7">
<num>7.</num>
<heading>Provisions to be contained in constitution or rules of Trade Union</heading>
<content>
<p>The constitution or rules of a trade union shall provide for the following matters, namely:-</p>
<p>(a) the name of the trade union;</p>
</content>
</section>
</fragment>
<portion>
<portionBody>
<section>
<num>6.</num>
<heading>Responsibilities of collection centres</heading>
<content>
<p>Ensure that the facilities are in accordance with the standards or guidelines issued by Central Pollution Control Board from time to time.</p>
</content>
</section>
</portionBody>
</portion>
69 changes: 30 additions & 39 deletions Streamlit/_cache/section_1
Original file line number Diff line number Diff line change
@@ -1,41 +1,32 @@
<portion includedIn="/akn/us/act/title_7">
<portion includedIn="/akn/us/act/title_6">
<portionBody>
<chapter GUID="id7d1d2ae15-f639-11e2-8470-abc29ba29c4d" eId="chp_7">
<num>CHAPTER 7—</num>
<heading>PROVISIONS TO BE CONTAINED IN CONSTITUTION OR RULES OF TRADE UNION</heading>
<intro>
<toc>
<tocItem href="" level="1">
<span>Sec.</span>
</tocItem>
<tocItem href="#sec_7" level="1">
<span>7.</span>
<span>Provisions to be contained in constitution or rules of Trade Union.</span>
</tocItem>
</toc>
</intro>


<section GUID="id7d1d2fc3c-f639-11e2-8470-abc29ba29c4d" eId="sec_7">
<num>§ 7.</num>
<heading>Provisions to be contained in constitution or rules of Trade Union</heading>
<content>
<p> A Trade Union shall not be entitled to registration under this Code, unless the executive thereof is constituted in accordance with the provisions of this Code, and the rules of the Trade Union provide for the following matters, namely:</p>
<p> - the name of the Trade Union;</p>
<p> - the whole of the objects for which the Trade Union has been established;</p>
<p> - the whole of the purposes for which the general funds of the Trade Union shall be applicable, all of which purposes shall be purposes to which such funds are lawfully applicable under this Code;</p>
<p> - the maintenance of a list of members of the Trade Union and adequate facilities for the inspection thereof by the office-bearers and members of the Trade Union;</p>
<p> - the admission of ordinary members (irrespective of their craft or category) who shall be persons actually engaged or employed in the industrial establishment, undertaking or industry, or units, branches or offices of an industrial establishment, as the case may be, with which the Trade Union is connected, and also the admission of such number of honorary or temporary members, who are not such workers, as are not permitted under section 21 to be office-bearers to form the executive of the Trade Union;</p>
<p> - the payment of a subscription by members of the Trade Union from such members and others, as may be prescribed;</p>
<p> - the conditions under which any member shall be entitled to any benefit assured by the rules and under which any fine or forfeiture may be imposed on any member;</p>
<p> - the annual general body meeting of the members of the Trade Union, the business to be transacted at such meeting, including the election of office-bearers of the Trade Union;</p>
<p> - the manner in which the members of the executive and the other office-bearers of the Trade Union shall be elected once in a period of every three years and removed, and filling of casual vacancies;</p>
<p> - the safe custody of the funds of the Trade Union, an annual audit, in such manner as may be prescribed, of the accounts thereof, and adequate facilities for the inspection of the account books by the office-bearers and members of the Trade Union;</p>
<p> - the manner in which the rules shall be amended, varied or rescinded; and</p>
<p> - the manner in which the Trade Union may be dissolved.</p>
</content>
</section>
</chapter>
</portionBody>
</portion>
<chapter GUID="idd1d2ae15-f639-11e2-8470-abc29ba29c4d" eId="chp_6">
<num>CHAPTER 6—</num>
<heading>E-WASTE MANAGEMENT</heading>
<intro>
<toc>
<tocItem href="" level="1">
<span>Sec.</span>
</tocItem>
<tocItem href="#sec_601" level="1">
<span>601.</span>
<span>Definitions.</span>
</tocItem>
<tocItem href="#sec_602" level="1">
<span>602.</span>
<span>Responsibilities of collection centres.</span>
</tocItem>
</toc>
</intro>

<section GUID="idd1d2fc3c-f639-11e2-8470-abc29ba29c4d" eId="sec_602">
<num>§ 602.</num>
<heading>Responsibilities of collection centres</heading>
<content>
<p>Collection centres shall collect e-waste on behalf of producer or dismantler or recycler or refurbisher including those arising from orphaned products; Provided the collection centres established by producer can also collect e-waste on behalf of dismantler, refurbisher and recycler including those arising from orphaned products.</p>
</content>
</section>
</chapter>
</portionBody>
</portion>
</akomaNtoso>
21 changes: 11 additions & 10 deletions Streamlit/_cache/section_2
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<fragment>
<section GUID="idd1d2ae15-f639-11e2-8470-abc29ba29c4d" eId="sec_7">
<num>7.</num>
<heading>Provisions to be contained in constitution or rules of Trade Union</heading>
<content>
<p>The constitution or rules of a trade union shall provide for the following matters, namely:-</p>
<p>(a) the name of the trade union;</p>
</content>
</section>
</fragment>
<portion>
<portionBody>
<section>
<num>6.</num>
<heading>Responsibilities of collection centres</heading>
<content>
<p>Ensure that the facilities are in accordance with the standards or guidelines issued by Central Pollution Control Board from time to time.</p>
</content>
</section>
</portionBody>
</portion>

0 comments on commit 0738ef3

Please sign in to comment.