Spaces:
Runtime error
Runtime error
Download app.py from TechGeekConnect/TechGeekConnect: direct link, hf CLI and curl.
- Browser
- Download file 9.55 kB
-
https://huggingface.co/spaces/TechGeekConnect/TechGeekConnect/resolve/main/app.py
- Command line
-
hf download hf://spaces/TechGeekConnect/TechGeekConnect/app.py
-
curl -L -o app.py https://huggingface.co/spaces/TechGeekConnect/TechGeekConnect/resolve/main/app.py
9.55 kB
| import gradio as gr | |
| from openai import OpenAI | |
| openai = OpenAI(base_url="http://srv652702.hstgr.cloud:11434/v1", api_key="ollama") | |
| text="""TechGeekConnect Technologies Information | |
| Name: TechGeekConnect Technologies | |
| Address: Blue Sky Icon, Baif Road, Wagholi, Pune, Maharashtra, India | |
| Founder Name: Pooja Mahesh Gavandar | |
| Mobile Number: +91 9373022600 | |
| Website: www.techgeekconnect.com | |
| General Email: support@techgeekconnect.com | |
| HR Email: hr@techgeekconnect.com | |
| About TechGeekConnect: | |
| TechGeekConnect Technologies is an EdTech training and internship institute based in Pune. The organization focuses on bridging the gap between academic learning and industry needs by providing practical, project-based training in the latest technologies. The institute aims to make students job-ready and confident by offering personalized mentorship, real-world projects, and placement support. | |
| Courses Offered: | |
| Python Full Stack Development | |
| Java Full Stack Development | |
| Artificial Intelligence and Machine Learning (AI/ML) | |
| DevOps and Cloud | |
| Agentic AI (Autonomous AI Systems) | |
| MERN Stack Development (MongoDB, Express, React, Node.js) | |
| Additional Offerings: | |
| Internship opportunities for students to gain hands-on experience. | |
| Guidance from mentors with real-world project exposure. | |
| Regular workshops, hackathons, and mock interviews. | |
| Resume building, career counseling, and interview preparation sessions. | |
| Both online and offline (classroom) training modes are available. | |
| Placement Information: | |
| TechGeekConnect maintains a 42% placement ratio, meaning approximately 4 out of 10 students successfully get placed after completing their training and internship. Placement support includes mock interviews, project-based evaluations, and connection to hiring partners. | |
| Why Choose TechGeekConnect: | |
| Hands-on, project-based learning with real-time mentorship. | |
| Courses designed with inputs from industry experts. | |
| Internship opportunities that enhance employability. | |
| Affordable course fees and flexible payment options. | |
| Supportive community and continuous post-course assistance. | |
| Strategic location in Wagholi, Pune, near major tech hubs. | |
| Mission and Vision: | |
| The mission of TechGeekConnect Technologies is to empower students and professionals with future-ready technical skills and bridge the employability gap. The vision is to build an ecosystem of skilled individuals who can innovate, solve real-world problems, and thrive in the global technology landscape. | |
| Contact and Enrollment Process: | |
| Interested students can contact TechGeekConnect through phone or email. The admission process includes a counseling session to identify the best course fit, followed by batch selection and enrollment. | |
| Phone: +91 9373022600 | |
| Email: support@techgeekconnect.com | |
| or hr@techgeekconnect.com | |
| linkedin: https://www.linkedin.com/company/techgeekconnect-technology | |
| facebook: https://www.facebook.com/p/Techgeekconnect-Technology-61565618144760/ | |
| Key Tagline: | |
| “Connect with Tech Experts — Build, Learn, and Grow with TechGeekConnect Technologies". | |
| Course Fees: | |
| Python Full Stack Development: ₹30,000 - ₹40,000 | |
| Java Full Stack Development: ₹30,000 - ₹40,000 | |
| Artificial Intelligence and Machine Learning (AI/ML): ₹40,000 - ₹50,000 | |
| DevOps and Cloud: ₹20,000 - ₹25,000 | |
| Agentic AI (Autonomous AI Systems): ₹50,000 - ₹60,000 | |
| MERN Stack Development (MongoDB, Express, React, Node.js): ₹30,000 - ₹40,000 | |
| Note: Fees may vary based on course duration, mode (online/offline), and any ongoing | |
| discounts or offers. It is advisable to contact TechGeekConnect directly for the most accurate and up-to-date fee structure. | |
| Course Duration: | |
| Python Full Stack Development: 3 to 6 months | |
| Java Full Stack Development: 3 to 6 months | |
| Artificial Intelligence and Machine Learning (AI/ML): 4 to 6 months | |
| DevOps and Cloud: 2 to 4 months | |
| Agentic AI (Autonomous AI Systems): 4 to 6 months | |
| MERN Stack Development (MongoDB, Express, React, Node.js): 3 to 6 months | |
| Note: Course durations may vary based on the mode of learning (online/offline), batch timings | |
| and individual learning pace. It is recommended to check with TechGeekConnect for specific course schedules and durations. | |
| Course Structure: | |
| Each course is structured into modules covering fundamental to advanced topics. | |
| Modules include theoretical lessons, practical coding sessions, real-world projects, and assessments. | |
| Courses also include soft skills training, resume building, and interview preparation. | |
| Regular workshops, hackathons, and guest lectures from industry experts are part of the curriculum. | |
| Courses are designed to provide hands-on experience with the latest tools and technologies used in the industry. | |
| Personalized mentorship and doubt-clearing sessions are available to ensure comprehensive understanding. | |
| Flexible learning options with both weekday and weekend batches. | |
| course breakdown: | |
| - Introduction to the technology and its applications. | |
| - Setting up the development environment. | |
| - Core concepts and programming fundamentals. | |
| - Hands-on coding sessions and mini-projects. | |
| - Advanced topics and frameworks. | |
| - Real-world projects to build a portfolio. | |
| - Soft skills and communication training. | |
| - Resume building and interview preparation. | |
| - Internship opportunities and placement support. | |
| - Continuous learning resources and community support. | |
| Course Brochure: | |
| For detailed course brochures, including syllabus, fee structure, and enrollment process, please visit the TechGeekConnect website at www.techgeekconnect.com or contact their support team at support@techgeekconnect.com or contact +91 9373022600/+91 7972024279. | |
| Internship Opportunities: | |
| TechGeekConnect offers internship opportunities as part of their training programs. Internships provide students with hands-on experience working on real-world projects under the guidance of industry professionals. These internships help students apply their learned skills, gain practical knowledge, and enhance their employability. Internship details, including duration and project specifics, are provided during the course. | |
| Alumni Network: | |
| TechGeekConnect has a strong alumni network that provides ongoing support and opportunities for former students. Alumni can access exclusive job listings, networking events, and mentorship programs to help them advance their careers. The alumni community also serves as a platform for sharing knowledge, experiences, and resources among graduates. | |
| Why we are best: | |
| 1. Industry-Relevant Curriculum: Our courses are designed with input from industry experts to ensure that | |
| students learn the skills that are in demand. | |
| 2. Hands-On Learning: We emphasize practical, project-based learning to help students gain real-world | |
| experience. | |
| 3. Experienced Instructors: Our instructors are industry professionals with extensive experience in their | |
| respective fields. | |
| 4. Personalized Mentorship: We provide one-on-one mentorship to help students overcome challenges and | |
| achieve their goals. | |
| 5. Placement Support: We offer comprehensive placement support, including resume building, interview | |
| preparation, and job placement assistance. | |
| 6. Flexible Learning Options: We offer both online and offline training modes to accommodate different | |
| learning preferences. | |
| 7. Affordable Pricing: Our courses are competitively priced to make quality education accessible to a | |
| wide audience. | |
| 8. Strong Alumni Network: Our alumni network provides ongoing support and opportunities for former | |
| students. | |
| 9. Strategic Location: Our institute is located in Wagholi, Pune, a hub for technology companies, providing | |
| students with access to potential employers and industry events. | |
| 10. Commitment to Quality: We are dedicated to providing high-quality education and continuously | |
| improving our courses and services based on student feedback and industry trends. | |
| """ | |
| name="TechGeekConnect" | |
| system_prompt=f"You are acting as {name} official representative. You will be given the information about {name}.\ | |
| You need to answer the questions based on the provided information. If the question is not related to {name}, respond with 'I am sorry, I can only answer questions related to {name}.\ | |
| with this information please chat with user in a professional tone." | |
| system_prompt+=f"##Summary of {name}##\n\n{text}" | |
| def agent_response(user_message, history): | |
| messages = [{"role": "system", "content": system_prompt}] | |
| # Add previous conversation history | |
| for user, assistant in history: | |
| messages.append({"role": "user", "content": user}) | |
| messages.append({"role": "assistant", "content": assistant}) | |
| messages.append({"role": "user", "content": user_message}) | |
| response = openai.chat.completions.create( | |
| model="llama3.2", | |
| messages=messages | |
| ) | |
| agent_reply = response.choices[0].message.content | |
| history.append((user_message, agent_reply)) | |
| return agent_reply, history | |
| with gr.Blocks() as demo: | |
| chatbot = gr.Chatbot(label="TechGeekConnect Calling Agent") | |
| msg = gr.Textbox(label="Ask about TechGeekConnect or say hello...") | |
| clear = gr.Button("Clear") | |
| def user_submit(user_message, history): | |
| reply, updated_history = agent_response(user_message, history or []) | |
| return updated_history + [(user_message, reply)], updated_history | |
| msg.submit( | |
| user_submit, | |
| inputs=[msg, chatbot], | |
| outputs=[chatbot, chatbot] | |
| ) | |
| clear.click(lambda: [], None, chatbot) | |
| demo.launch() |