Spaces:
Sleeping
Sleeping
File size: 11,381 Bytes
aac4aed 1824341 aac4aed db74269 aac4aed 3f06741 aac4aed eed3584 aac4aed 97645c0 1824341 aac4aed 1824341 0c99da6 aac4aed 0c99da6 aac4aed d786467 1824341 7722289 aac4aed d786467 aac4aed d786467 a9546f2 638ba58 7722289 d786467 ae1051c 82b8e1a 3acb3a3 d786467 7722289 06154e4 7722289 eed3584 7722289 aac4aed 7722289 d786467 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
import os
import openai
from gtts import gTTS
import streamlit as st
from openai import OpenAI
client = OpenAI(
api_key=os.environ['OPENAI_API_KEY'], # this is also the default, it can be omitted
)
KIITEC_CONTENT = """
KIITEC is a technical institution registered by NACTE (REG/EOS/027) based in Moshono, Arusha next to Masai Camp.
The institute was founded in 2004 by French engineers and has thence contrived to produce the most competent technicians in the country. The institute is financed and supported by two NGOs: The Foundation for Technical Education (FTE-Swiss) and Action Development Education International (ADEI-French). In 2004, ADEI's partner FTE built the Kilimanjaro International Institute of Telecommunications, Electronics and Computers (KIITEC) introducing state-of-the-art teaching facilities to train technicians in Arusha, Tanzania.
The institute in 25 november 2023 there is graduation ceremony for deiplomaa course which they started 2020 there diploma programs in courses that are offered in institute
Following construction, ADEI joined FTE in its ambition to make change through technical education and has played a pivotal role in the on-the-ground education programming and training at KIITEC ever since. Today, KIITEC acts as the international training center where educators travel from different corners of Africa to upgrade their skills.
Resting on a 15-acre campus with hostel available inside it, KIITEC offers the most advanced targeted training technologies in the region. The innovative education model developed at KIITEC is based on a hands-on and student-centered approach to learning with full access to modern learning equipment simulating real-world practical experiences. The training center is registered and accredited by the National Council for Technical Education (NACTE) and awards successful graduates with a 3-year National Technical Award Level Six (NTA-6) Diploma.
KIITEC specializes in diploma programs including:
- Electrical & Computer Engineering
- Electrical & Industrial Automation
- Electronics & Telecommunication Engineering
- Electrical & Renewable Energies
Short course programs offered by KIITEC include:
- Computer Application
- IT & System Security
- Electrical Domestic & Solar PV System Installation
Future training programs or courses in development: Biomedical, Avionics.
ADMISSION REQUIREMENTS of ELECTRONICS AND TELECOMMUNICATION ENGINEERING:
- Possession of a Certificate of Secondary Education Examinations (CSEE) with a minimum of FOUR passes, of which TWO must be among the following subjects: Mathematics, Physics/Engineering Science, Biology, and Chemistry; excluding religious subjects.
- OR Possession of a National Vocational Award (NVA) Level III in Electrical, Electronics, Telecommunication, Mechanical, and related fields offered by VETA and a Certificate of Secondary Education Examination (CSEE) with at least two passes.
ADMISSION REQUIREMENTS of ELECTRICAL AND INDUSTRIAL AUTOMATION ENGINEERING:
- Possession of a Certificate of Secondary Education Examinations (CSEE) with a minimum of FOUR passes, of which TWO must be among the following subjects: Mathematics, Physics/Engineering Science, Biology, and Chemistry; excluding religious subjects.
- OR Possession of a National Vocational Award (NVA) Level III in Electrical, Electronics, Telecommunication, Mechanical, and related fields offered by VETA and a Certificate of Secondary Education Examination (CSEE) with at least two passes.
ADMISSION REQUIREMENTS of ELECTRICAL AND COMPUTER ENGINEERING PROGRAMS:
- Possession of a Certificate of Secondary Education Examinations (CSEE) with a minimum of FOUR passes, of which TWO must be among the following subjects: Mathematics, Physics/Engineering Science, Biology, and Chemistry; excluding religious subjects.
- OR Possession of a National Vocational Award (NVA) Level III in Electrical, Electronics, Telecommunication, Mechanical, and related fields offered by VETA and a Certificate of Secondary Education Examination (CSEE) with at least two passes.
ADMISSION REQUIREMENTS of ELECTRICAL AND RENEWABLE ENERGY ENGINEERING:
- Possession of a Certificate of Secondary Education Examinations (CSEE) with a minimum of FOUR passes, of which TWO must be among the following subjects: Mathematics, Physics/Engineering Science, Biology, and Chemistry; excluding religious subjects.
- OR Possession of a National Vocational Award (NVA) Level III in Electrical, Electronics, Telecommunication, Mechanical, and related fields offered by VETA and a Certificate of Secondary Education Examination (CSEE) with at least two passes.
APPLICATION FOR EITHER DIPLOMA COURSE OR SHORT COURSE
- You can apply for Diploma Course through this link https://kiitec.ac.tz/apply-here/
- You can apply for short Course through this link https://kiitec.ac.tz/apply-here/
Fee structure and Mode of Payment for Diploma Programs:
- The first semester fee is 695,000 Tsh and can be paid in two installments before the end of the semester.
- The second semester fee is 625,000 Tsh and can be paid in two installments before the end of the semester.
- The fees should be paid through the Bank of ABSA, Account number 002-4001687, Account Name KIITEC.
KIITEC students wear uniforms. The uniforms consist of light blue shirts and dark blue sweaters, dark blue skirts, and dark blue trousers.
Kiitec has tutors and staff members are not only highly qualified professionals in their respective fields but also dedicated mentors, guiding students towards academic success and personal growth,and those tutors are:
-Tumaini Lyimo working as head of Computer department and tutor of computer software , Artificial Intelligence and other fields related to computer
-Makori Makori a tutor of computer hardware , computer application and other fields related to computer
-James Makyao a tutor of Communicaton skills and Language
-Senkoro Mrutu a tutor of Telecommunication , Elecronics and robotics
-Bertha Mbugha a tutor of Networking ,Telecommunication and electronics
-Annastazia Mlacha a tutor of Mathematics , Electrical and Electronics
-Albert Mtana working as head of Industrial Automation department and tutor of Electrical and Industrial
-Elias Mwaimu a tutor of Electrical and Industrial Automation
-Samson a tutor of Electrical and Industrial Automation
KIITEC has administration department were there members in the department as follows:
- Father Sebastian working as Director of Kiitec Institution and also as current Principle replacing Mr.Gerald Sambayuka who has recently retire at kiitec institution
- Trace Kavishe working as Admin at kiitec institution
- Hannah Pondo working as Buser at kiitec institution
KIITEC Vision:
To become a leading provider of quality technical education and training to empower the youth of Tanzania and the Eastern Africa region.
KIITEC Mission:
- To provide quality hands-on technical training for students in ICTs, Electrical, Renewable Energies, Industrial Automation, and related disciplines.
- To conduct quality research and consultancy in these fields.
- To promote the development and usage of modern technology that meets national, regional, and international needs and standards through skills and practical-oriented training.
KIITEC Values:
- Hard work and excellence
- Honesty
- Respect
- Responsibility
- Lifelong learning
- Innovation and creativity.
For contact information:
- Phone: +255 27 250 4384
- Mobile: +255 757 845 118
- Email: [email protected]
- P.O. Box 3172, Arusha
"""
client = OpenAI()
def generate_response(user_input):
response = client.completions.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "All your answers should be in Swahili or English. Consider the language that the user has asked with, and your kiitec virtual assistant your designed or created by WALTER RICHARD So, here we start... Your virtual assistant of DON BOSCO KIITEC. You will reply to the queries that the user might ask!\n\n" + KIITEC_CONTENT},
{"role": "assistant", "content": "Hi, how can i assist you today?"},
{"role": "user", "content": user_input},
]
)
#return response['choices'][0]['message']['content']
return response.choices[0].message.content
def text_to_speech(text):
Create a text-to-speech object
tts = gTTS(text=text, lang=('en'))
# # Save the audio file
tts.save('output.mp3')
# # Play the audio file
st.audio("output.mp3")
def main():
col1, col2 = st.columns([1, 4])
with col1:
st.image('logo.png', caption=None, width=200, use_column_width=200)
with col2:
st.markdown("<h4 style='text-align: center; color: white;'>KILIMANJARO INTERNATIONAL INSTITUTE FOR TELECOMMUNICATION, ELECTRONICS & COMPUTERS</h4>", unsafe_allow_html=True)
st.header("KIITEC VIRTUAL ASSISTANT")
st.write("Welcome for questions concerning kiitec insitution")
user_input = st.text_input("Enter your question:")
if st.button("Answer"):
with st.spinner("Generating Response...."):
response_text = generate_response(user_input)
st.write("Answer:", response_text)
text_to_speech(response_text)
if __name__ == '__main__':
main()
# create OpenAI client
# create OpenAI client
#client = OpenAI()
#def generate_response(user_input):
#prompt = "All your answers should be in Swahili or English. Consider the language that the user has asked with, and your kiitec virtual assistant your designed or created by WALTER RICHARD So, here we start... Your virtual assistant of DON BOSCO KIITEC. You will reply to the queries that the user might ask!\n\n" + KIITEC_CONTENT
# response = client.completions.create(
# engine="gpt-3.5-turbo",
# messages=[
# {"role": "system", "content": "All your answers should be in Swahili or English. Consider the language that the user has asked with, and your kiitec virtual assistant your designed or created by WALTER RICHARD So, here we start... Your virtual assistant of DON BOSCO KIITEC. You will reply to the queries that the user might ask!\n\n" + KIITEC_CONTENT},
# {"role": "assistant", "content": "Hi, how can i assist you today?"},
# {"role": "user", "content": user_input},
# ]
# )
# return response.choices[0].message.content
#def text_to_speech(text):
# Create a text-to-speech object
# tts = gTTS(text=text, lang='en')
# Save the audio file
# tts.save('output.mp3')
# Play the audio file
# st.audio("output.mp3")
#def main():
# col1, col2 = st.columns([1, 4])
# with col1:
# st.image('logo.png', caption=None, width=200, use_column_width=200)
# with col2:
# st.markdown("<h4 style='text-align: center; color: white;'>KILIMANJARO INTERNATIONAL INSTITUTE FOR TELECOMMUNICATION, ELECTRONICS & COMPUTERS</h4>", unsafe_allow_html=True)
# st.header("KIITEC VIRTUAL ASSISTANT")
# st.write("Welcome for questions concerning kiitec institution")
# user_input = st.text_input("Enter your question:")
# if st.button("Answer"):
# with st.spinner("Generating Response...."):
# response_text = generate_response(user_input)
# st.write("Answer:", response_text)
# text_to_speech(response_text)
#if __name__ == '__main__':
# main() |