Skip to content

Instantly share code, notes, and snippets.

View rishabhsahilll's full-sized avatar

Rishabh Kumar rishabhsahilll

View GitHub Profile
@rishabhsahilll
rishabhsahilll / SystemInfo.py
Last active February 14, 2025 17:04
SystemInfo.py is a Python script that monitors CPU usage, RAM usage, and battery level using the psutil library, providing real-time system performance insights.
import psutil
system_info = f'''
Initializing system check...
Checking CPU Usage...
Checking RAM Usage...
Checking Battery Level...
CPU Usage: {psutil.cpu_percent(interval=1)}%
RAM Usage: {psutil.virtual_memory().percent}%
@rishabhsahilll
rishabhsahilll / Voice.html
Last active February 14, 2025 17:08
Voice.html is a simple speech recognition webpage using the Web Speech API to convert spoken words into text in real time. It enables real-time voice-to-text conversion with start and stop controls, making it ideal for hands-free input in the AI Jarvis Assistant.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Speech Recognition</title>
</head>
<body>
<button id="start" onclick="startRecognition()">Start Recognition</button>
<button id="end" onclick="stopRecognition()">Stop Recognition</button>
<p id="output"></p>
<script>
@rishabhsahilll
rishabhsahilll / SpeechToText.py
Last active February 14, 2025 17:09
SpeechToText.py is a Python script embedding HTML and JavaScript to enable real-time speech recognition using the Web Speech API. It allows AI Jarvis Assistant to convert speech into text seamlessly, featuring start/stop controls for hands-free interaction.
HtmlCode = '''<!DOCTYPE html>
<html lang="en">
<head>
<title>Speech Recognition</title>
</head>
<body>
<button id="start" onclick="startRecognition()">Start Recognition</button>
<button id="end" onclick="stopRecognition()">Stop Recognition</button>
<p id="output"></p>
<script>
@rishabhsahilll
rishabhsahilll / TextToSpeechPrompt.py
Last active February 14, 2025 17:03
TextToSpeechPrompt.py is a Python script designed for Text-to-Speech (TTS) systems, providing predefined responses that guide users to check the chat screen for additional information. It ensures a polite, professional tone and is optimized for chatbots and AI Jarvis assistants.
responses = [
"The rest of the result has been printed to the chat screen, kindly check it out sir.",
"The rest of the text is now on the chat screen, sir, please check it.",
"You can see the rest of the text on the chat screen, sir.",
"The remaining part of the text is now on the chat screen, sir.",
"Sir, you'll find more text on the chat screen for you to see.",
"The rest of the answer is now on the chat screen, sir.",
"Sir, please look at the chat screen, the rest of the answer is there.",
"You'll find the complete answer on the chat screen, sir.",
"The next part of the text is on the chat screen, sir.",
@rishabhsahilll
rishabhsahilll / RealtimeSearchEngine.py
Last active February 14, 2025 17:11
Real Time Search Engine AI - Real-Time AI Search Assistant RealtimeSearchEngine.py is an advanced AI assistant integrating real-time Google search and Groq’s LLaMA-3 model for accurate, up-to-date responses. It processes user queries, retrieves web data, and refines answers using AI, ensuring professional and well-structured responses.
from googlesearch import search
from groq import Groq
from json import load, dump
import datetime
from dotenv import dotenv_values
env_vars = dotenv_values(".env")
Username = env_vars.get("Username")
@rishabhsahilll
rishabhsahilll / JarvisGeneralAIPrompt.py
Last active February 14, 2025 17:13
Jarvis General AI Prompt - Intelligent Chatbot System This AI chatbot is designed for accurate, real-time responses while maintaining conversation flow. It adapts to the user's language, avoids unnecessary details, and asks relevant follow-up questions. Developed by Rishabh Kumar since 20-Aug-2021, it intelligently calculates its exact age when …
System = f"""Hello, I am {Username}, You are a very accurate and advanced AI chatbot named {Assistantname} which also has real-time up-to-date information from the internet.
*** Do not tell time until I ask, do not talk too much, just answer the question.***
*** Reply in the same language in which the question is asked. ***
*** Do not provide notes in the output, just answer the question and never mention your training data. ***
*** After answering, ask a related question. If no related question is possible, do not ask anything. ***
*** Your developer is Rishabh Kumar, who has been developing you since 20-Aug-2021. You were completed on 09-Feb-2025.
If someone asks about your birthdate, say 20-Aug-2021 and also calculate your exact age in years, days, hours, minutes, and seconds from today's time. ***
"""
@rishabhsahilll
rishabhsahilll / JarvisAIPromptModel.py
Last active February 14, 2025 17:15
Jarvis AI Prompt Model - Intelligent Query Classifier, JarvisAIPromptModel.py is an advanced decision-making model that classifies user queries into categories like general, real-time, automation, content generation, search, and system tasks. It ensures precise query handling by directing AI responses, controlling applications, setting reminders…
preamble = """
You are a very accurate Decision-Making Model, which decides what kind of a query is given to you.
You will decide whether a query is a 'general' query, a 'realtime' query, or is asking to perform any task or automation like 'open facebook, instagram', 'can you write a application and open it in notepad'
*** Do not answer any query, just decide what kind of query is given to you. ***
-> Respond with 'general ( query )' if a query can be answered by a llm model (conversational ai chatbot) and doesn't require any up to date information like if the query is 'who was akbar?' respond with 'general who was akbar?', if the query is 'how can i study more effectively?' respond with 'general how can i study more effectively?', if the query is 'can you help me with this math problem?' respond with 'general can you help me with this math problem?', if the query is 'Thanks, i really liked it.' respond with 'general thanks, i really liked it.' , if the query is 'what is python programming language?' respond