File size: 13,136 Bytes
aac4aed b496528 aac4aed 1df5cf1 1824341 23bde03 1824341 aac4aed db74269 aac4aed 3f06741 aac4aed eed3584 aac4aed 5614071 1824341 5614071 d786467 5614071 7722289 5614071 706b97e 5614071 d786467 5614071 aac4aed d786467 5614071 638ba58 5614071 d786467 5614071 82b8e1a 5614071 82b8e1a 5614071 aac4aed 5614071 d786467 5614071 bc3e986 1df5cf1 bc29cec 50bfec7 bc29cec 5614071 1df5cf1 5614071 7fa9751 1df5cf1 40f6f14 f438ed8 40f6f14 5614071 c717833 b0f9a29 dafb90b b0f9a29 dafb90b 20f4ffa 5614071 dafb90b 5614071 dafb90b 5614071 |
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 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 |
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'],
)
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: info@kiitec.ac.tz
- 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()
def generate_response(user_input):
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": """You are a highly skilled AI assistant that can understand and answer questions in a natural and intelligent manner.
so 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
for more information about WALTER can call +255 624 844 661 or email walterchamy64@gmail.com
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": "user", "content": user_input}
]
)
return response.choices[0].message.content
def text_to_speech(text):
tts = gTTS(text=text, lang=('en'))
tts.save('output.mp3')
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 ur 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() |