import openai import gradio import os apikey = os.getenv('SECRET_TOKEN') openai.api_key = apikey messages = [{"role": "system", "content": "gobolt is a chatbot that provides guidance to entrepreneurs who want to start a business. It offers business legal guidance, assistance with paying taxes, information on required company structures, image generation for starting ideas, basic accounting help, and answers to ZRA (Zambia Revenue Authority) questions that are useful for the people of Zambia."}, {"role": "assistant", "content": "gobolt is a chatbot that provides guidance to entrepreneurs who want to start a business. It offers business legal guidance, assistance with paying taxes, information on required company structures, image generation for starting ideas, basic accounting help, and answers to ZRA (Zambia Revenue Authority) questions that are useful for the people of Zambia."}, {"role": "user", "content": "what is a pacra company booklet?"}, {"role": "system", "content": "2.2.29. Representative of a Defunct Company\n\nProcedure:\nThe Registrar may, after a company has been deregistered, represent the company if satisfied that if the company was still existing, it would be bound to carry out or give effect to a transaction or decision required to be done by or on behalf of the company. In accordance with section 319, a Representative of a defunct company may write a letter to the Registrar requesting the Registrar to act on behalf of a defunct company. The fee is K4,170.\n\nPrerequisite:\nA company must be defunct or struck-off the Register of companies.\n\nFees:\nK4,170\n\nForms:\nForms can be downloaded from www.pacra.org.zm. There are no forms to be filled in.\n\n2.2.30. APPLICATION TO DISPENSE WITH THE WORD ‘LIMITED’\n\nProcedure:\nAn Application to dispense with the word “Limited” (Companies Form 5) is filed by Companies Limited by Guarantee to the Registrar under section 37 of the Companies Act No. 10 of 2017. The purpose of the form is to request the Registrar to grant the applicant written approval to omit or dispense with the use of the word “limited” from the name of the company.\n\nSupporting documents:\nI. Special resolution.\nII. Original certificate of incorporation.\n\nFee:\nK1000\nForm:\nCompanies Form 5\n\nForms can be downloaded from www.pacra.org.zm.\n\n2.2.31. APPLICATION TO DISPENSE WITH HOLDING OF ANNUAL GENERAL MEETING\n\nProcedure:\nA Notice to dispense with holding an annual general meeting (Companies form 9) is filed to the Registrar under section 57 of the Companies Act No. 10 of 2017 by Private Companies. A private company may dispense with the holding of an annual general meeting, other than the first financial year, if all the members entitled to attend and vote at the annual general meeting agree in writing. The form is filed to the Registrar before the end of the financial year.\n\nSupporting documents:\nI. Special resolution.\n\nFee:\nK500\nForm:\nCompanies form 9\n\n2.2.32. NOTICE OF ACQUISITION OF FULLY PAID UP SHARES BY COMPANY\n\nProcedure:\nA notice of acquisition of fully paid up shares by the company (Companies Form 14) is filed to the Registrar under section 163 of the Companies Act No. 10 of 2017. The form is filed by the board of directors of a private company within 14 days of acquisition of the shares. The Form must be accompanied by a special resolution and a declaration by the directors that the company shall remain solvent after the acquisition. This procedure applies to all registered companies with the exception of Public Limited Companies, Companies Limited by Guarantee, and Foreign Companies.\n\nSupporting documents:\nI. Special Resolution\n\nFee:\nK900\nForms:\nCompanies Form 14 - Notice of acquisition of fully paid up shares by the company\n\nForms can be downloaded from www.pacra.org.zm.\n\n2.2.33. NOTICE OF ACQUISITION OF SHARES ON SECURITIES EXCHANGE\n\nProcedure:\nA notice of acquisition of shares on the securities exchange (Companies Form 15) is sent to each securities exchange under section 170 of the Companies Act No. 10 of 2017. The board of directors sends the Companies Form 15 to each securities exchange on which the shares of the company are listed, within 14 days after shares are acquired. This procedure applies to companies listed on the Securities Exchange in Zambia.\n\nSupporting document:\nI. Special Resolution\nII. Proof of clearance by Securities and Exchange Commission\n\nFee:\nK900\nForm:\nCompanies Form 15\n\n2.2.34. NOTICE TO REDEEM SHARES\n\nProcedure:\nA Notice to redeem shares (Companies Form 16) is filed to the Registrar under section 181 of the Companies Act No. 10 of 2017. Redeemable shares are issued on terms that the company will, or may, buy them back at some future date. The date may be fixed (e.g. that the shares will be redeemed two years after they are issued) or at the directors' discretion. The company may redeem shares on the date specified in the notice, or if the date is not specified, on the date of receipt of the notice. The form is used to give notice to the company of the intention by the shareholder to redeem shares. This procedure applies to companies registered in Zambia with the exception of companies limited by guarantee and foreign companies.\n\nSupporting document:\nSpecial Resolution\n\nFee:\nK200\nForm:\nCompanies Form 16\n\nForms can be downloaded from www.pacra.org.zm.\n\n2.2.35. DECLARATION TO PROVIDE FINANCIAL ASSISTANCE\n\nProcedure:\nA declaration to provide financial assistance (Companies Form 17) is filed to the Registrar under section 184 of the Companies Act No. 10 of 2017. The Companies Form 17 is filed by a company together with a statutory declaration, the auditor’s report, and a copy of the special resolution, within 21 days after the passing of the special resolution to provide financial assistance. The purpose of the form is to give notice to the Registrar of the intention to provide financial assistance. This procedure applies to companies registered in Zambia with the exception of companies limited by guarantee and foreign companies.\n\nForm:\nCompanies Form 17\nSupporting documents:\nI. Special Resolution\nII. Statutory declaration by two or more directors\nIII. Auditor’s report or court order\n\n2.2.36. NOTICE OF CHANGES IN PARTICULARS IN SHAREHOLDING OR BENEFICIAL OWNERSHIP\n\nProcedure:\nA Notice of Changes in the Shareholding and Beneficial Ownership (Companies Form 20) is filed to the Registrar by a company under section 21 of the Companies Act No. 10 of 2017. The Companies form 20 is filed to the Registrar within 14 days whenever there are changes in the shareholding, beneficial ownership, or particulars of shareholders or beneficial owners. Changes in shareholding and beneficial ownership over shares shall be registered in accordance with Section 21 of the Companies Act. The Form is used to notify the Registrar of any changes made in the registered particulars of shareholders and beneficial owners. This procedure applies to companies registered in Zambia with the exception of companies limited by guarantee and foreign companies.\n\nForm:\nCompanies Form 20\nSupporting documents:\nA Declaration of Beneficial Ownership if the changes being made relate to beneficial owners\n\nFee:\nK200"}, {"role": "system", "content": "Application for Company Deregistration' and related processes:\n\n2.2.28. Application for Company Deregistration\n\nProcedure:\nAn application for company deregistration (Companies Form 44) is filed with the Registrar under section 318 of the Companies Act No. 10 of 2017 by members of a company. The purpose of this form is to request the Registrar to strike off a company from the register for being dormant or defunct.\n\nUpon receipt of the Companies Form 44, the Registrar will cause to be published in the Gazette or in a daily newspaper of general circulation in Zambia or other media a notice of intention to deregister the company as requested.\n\nForms and Supporting Documents:\n- Forms: Companies Form 44\n- Supporting Documents:\n 1. Special resolution\n 2. Summary of accounts\n 3. Statutory declaration by two or more directors\n 4. Surrender of certificates\n\nFees: K750\n\nThe fee is K750, and the following documents must be lodged:\n1. Statutory declaration for two or more directors showing what disposition the company has made of its assets and that the company has no debts or liabilities.\n2. Summary of Accounts.\n3. Special Resolution.\n4. Surrender the original Certificate of Incorporation, Certificate of Minimum Capital, and Certificate of share capital.\n\nFor more specific guidance and the most up-to-date information, it is advisable to check the official website of the Patents and Companies Registration Agency (PACRA) or consult with legal professionals familiar with Zambian corporate laws and regulations."}, {"role": "system", "content": "The law requires that Annual Returns be filed within three months of a company’s financial year end. Alternatively, they can be filed within one month after the annual general meeting, if such a meeting is held three months after the end of the financial year.\n\nAnnual Returns are important as they show that a company is still legally alive and operational. Non-filing of annual returns can result in the company being struck-off the register.\n\na. PROCEDURE\nCompanies Form 33 - Annual Return of a company or Form 34 - No change return (which is filed if there have been no changes in the period for which a return is filed).\nb. PREREQUISITE\nAn Annual return must be due, and the company must not be de-registered.\nc. FEES\n(a) Private Company - 200.00\n (b) Public Company - 1,000.00\n (c) Bank\n (i) Private - 1,670.00\n (ii) Public - 2,500.00\n (d) Insurance Company\n (i) Private - 1,670.00\n (ii) Public - 2,500.00\n (e) Bureau De change & Financial Institutions\n (i) Private - 1,670.00\n (ii) Public - 2,500.00\n (f) Late filing fee per year for all companies - K100\nd. FORMS\n- Companies Form 33 – Annual return for a Company or Form 34 – No change return – Which is filed if no changes were made in the period to which a return is made up to. Forms can be downloaded from www.pacra.org.zm."}, {"role": "system", "content": "2.2.6. Annual Return for a Public Limited Company\na. PROCEDURE\nCompanies Form 33 must be filed in duplicate. The process is completed within 24 hours.\nb. PREREQUISITE\n1. A company must file annual returns to the Registry within three months after the end of each financial year;\n2. Audited Financial Statement\nc. FEES\nForm 33 – K200 in case of Public Limited Company\nd. FORMS\n- Companies Form 33 – Annual return for a Company or Form 34 – No change return – Which is filed if there have been no changes in the period for which the return is being filed. Forms can be downloaded from www.pacra.org.zm"}, {"role": "system", "content": "2.2.7. Application for Change of Company Name\nWhen a company resolves to change its name, it should inform the Registrar within 21 days of the resolution on Companies Form 4.\na. PROCEDURE\nAn Application for change of company name is made on Companies Form 4. The Form must be typewritten, a special resolution and Certificates of Incorporation and Share Capital must be attached.\nb. PREREQUISITE\n1. Valid Name Clearance\n2. Special Resolution for change of company name\n3. Companies Form 4"}, {"role": "system", "content": "2.2.13. Notice of Alteration in Capital\nA company may, unless its articles provide otherwise, by special resolution, alter its share capital by increasing or reducing its share capital by new shares of such an amount as it thinks expedient. A reduction in share capital must be sanctioned by a court order. A Notice of Alteration in Capital (Form 11) and a resolution must be filed within one month from the date when the resolution for alteration in capital was passed.\n\nWhen a company resolves to change its share capital, it is required by law to notify the Registrar. These changes could refer to an increase in share capital, subdividing shares, converting them into stock, or consolidation of its shares.\na. PROCEDURE\nCompanies Form 11 filed in duplicate and a Special Resolution for an increase in capital must be lodged. The Minimum Authorized Share Capital for various classes of companies is as follows:\n1. Private Company - Minimum Nominal Capital K15,000\n2. Public Company - Minimum Capital K1,500,000\n3. Bureau de Change - Minimum Capital K375,000\n4. Financial Institution - Minimum Capital K750,000\n5. Insurance company – Minimum Capital K1,500,000\n6. Re-insurance company – Minimum Capital K7,500,000\n7. Insurance Broker - Minimum Capital K780,000\n8. Local Bank - Nominal Capital K156,000,000\n9. Foreign Bank - Nominal Capital K780,000,000"}, {"role": "system", "content": "d. FORMS\nAn application for approval of a name can be made in writing or on a name clearance form (Companies Form 1 – Application for name clearance). This Form can be downloaded from [PACRA's official website](https://www.pacra.org.zm).\n\n2.1.2. Application for Reservation\nIf for some reason the name approved cannot be used within the granted 30 days, the applicant must request the Registrar in writing to have the name reserved for a period of ninety (90) days upon payment of a fee of K200.\n\na. PROCEDURE\nCompanies Form 2 must be typewritten, in duplicate and duly signed by promoters. The process of name reservation is completed within 2 hours if all relevant documents are filed.\n\nb. PREREQUISITE\nMust have a valid cleared name.\n\nc. FEES\n- Reservation Fee: K200"}, {"role": "system", "content": "1. INTRODUCTION\nThe Knowledge Base is a repository of information on services offered by the Agency and has been designed in such a manner that makes it easy to search for information. The Knowledge Base is easy to access and has been designed to ensure efficiency, effectiveness, and consistent dissemination of information by its users on services offered by the Agency.\nThe system has the following features:\n1. Processes\n2. Fees\n3. Forms\n4. General Guidance\n5. Fee Calculator.\nThis document is the source of the information contained on the Knowledge Base System."}, {"role": "system", "content": "Transfer of Shares\nA share indicates the pecuniary interest of the shareholders and their rights and liabilities. Shares in a Company are freely transferable. For the purpose of transfer of shares, a prescribed form must be completed.\n\nIf an instrument of transfer of fully paid shares in a Company is in the prescribed form, executed by both the transferor and the transferee, or by persons duly authorised on behalf of the transferor or the transferee, the Registrar of Companies shall accept and register the transfer. Companies Form 18 must be signed by both the transferor and transferee. The Form must indicate details of beneficial owners of the shares and submitted to the Registrar in duplicate.\n\nAttachments:\n1. Transferor must have shares in a company.\n2. Property Transfer Tax Certificate from Zambia Revenue Authority.\n3. Certified copies of NRC or passport for affected shareholders.\n\nFees:\n- Registration Fee: K900\n\nForms:\n- Companies Form 18 – Notice of transfer of shares\nForms can be downloaded from PACRA.\n\n2.2.21. Allotment of Shares\nA company with unissued shares may allot the shares to any person who qualifies to be a shareholder. A return of allotment indicates the number of shares, the nominal amount of the shares comprised in the allotment, details of each allottees and beneficial owners (if any).\n\nPrerequisite:\n1. The company must have unissued shares.\n2. Special Resolution is required.\n\nFees:\n- Registration Fee: K200"}, ] def CustomChatGpt(userinput): messages.append({"role": "user", "content": userinput}) response = openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=messages # Corrected spelling here ) ChatGPT_reply = response["choices"][0]["message"]["content"] # Corrected spelling here messages.append({"role": "assistant", "content": ChatGPT_reply}) return ChatGPT_reply demo = gradio.Interface(fn=CustomChatGpt, inputs="text", outputs="text", title="Gobolt") demo.launch(share=True) # demo.launch(inline=True) # demo.launch()