Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#171 Intro #214

Merged
merged 7 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .streamlit/secrets.example.toml
Avdhesh-Varshney marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Configuration Variables
MONGODB_URI=""
MONGODB_URI="localhost:27017"
UMAMI_WEBSITE_ID=""
ADMIN_KEY=""
SUPER_ADMIN_KEY=""
Expand Down
2 changes: 1 addition & 1 deletion Jarvis.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ def application():
from src.utils.functions import load_functions
app = st.navigation(pages=load_functions())

app.run()
app.run()
Binary file added intro.mp4
Binary file not shown.
1 change: 1 addition & 0 deletions requirements.txt
Avdhesh-Varshney marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pillow==10.3.0
pint==0.24.2
plotly==5.23.0
PyAutoGUI==0.9.54
pyarrow==0.0.0
pymongo==4.8.0
PyPDF2==3.0.1
pyperclip==1.9.0
Expand Down
99 changes: 63 additions & 36 deletions src/apps/public/home.py
Original file line number Diff line number Diff line change
@@ -1,39 +1,66 @@
import streamlit as st
import time

# Set up session state to track if the intro video has been shown
if 'video_shown' not in st.session_state:
st.session_state.video_shown = False

def show_intro_video():
# Display the intro video
st.video("intro.mp4")

# Simulate waiting for video duration (adjust this to the actual duration of your video)
video_duration = 5 # Example: set to the video duration in seconds
time.sleep(video_duration) # Wait for the video to finish

# Update session state
st.session_state.video_shown = True # Set to True to show the main content next

def home():
st.title("Welcome to Jarvis - Your Virtual AI Assistant!")
st.image('assets/image.gif', caption='Empower Your Digital Life with Jarvis', use_column_width=True)

st.markdown("""
## What is Jarvis?
**Jarvis** is a powerful Python-based AI assistant designed to streamline your daily tasks through simple voice commands. Whether you're navigating the web, managing your media, or automating routine processes, Jarvis is here to help.
""")

st.markdown("""
## Key Features
- **Voice Commands**: Control your computer effortlessly using voice commands.
- **Web Automation**: Open websites, search the internet, and get instant results.
- **Media Control**: Play your favorite music and videos with a single command.
- **Productivity Tools**: Open code editors, manage your time, and stay organized.
- **Information Retrieval**: Get instant answers from Wikipedia and other sources.
- **Email Management**: Send and receive emails directly from the assistant.
""")

st.markdown("## See Jarvis in Action")
st.video('https://youtu.be/kjIH9qo8dX4')

st.markdown("""
## Learn More and Get Started
Explore the capabilities of Jarvis by diving into the following resources:
- [Documentation](https://codingblogs.hashnode.dev/) - Comprehensive guides on setting up and using Jarvis.
- [Community Forums](https://discord.gg/tSqtvHUJzE) - Join discussions with other Jarvis users.
- [GitHub Repository](https://github.com/Avdhesh-Varshney/Jarvis) - Contribute to the development or get the latest version.
- [YouTube Playlist](https://www.youtube.com/playlist?list=PLPUts_2rBVRVTrLlcB54Hwi6Ws51UWLXU) - Watch tutorials and feature demonstrations.
""")

st.markdown("""
---
**Jarvis** is continually evolving with new features and improvements. Stay tuned for updates and feel free to contribute to its development.
""")

home()
# Main content after video
st.title("Welcome to Jarvis - Your Virtual AI Assistant!")
st.image('assets/image.gif', caption='Empower Your Digital Life with Jarvis', use_column_width=True)

st.markdown("""
## What is Jarvis?
**Jarvis** is a powerful Python-based AI assistant designed to streamline your daily tasks through simple voice commands. Whether you're navigating the web, managing your media, or automating routine processes, Jarvis is here to help.
""")

st.markdown("""
## Key Features
- **Voice Commands**: Control your computer effortlessly using voice commands.
- **Web Automation**: Open websites, search the internet, and get instant results.
- **Media Control**: Play your favorite music and videos with a single command.
- **Productivity Tools**: Open code editors, manage your time, and stay organized.
- **Information Retrieval**: Get instant answers from Wikipedia and other sources.
- **Email Management**: Send and receive emails directly from the assistant.
""")

st.markdown("## See Jarvis in Action")
st.video('https://youtu.be/kjIH9qo8dX4')

st.markdown("""
## Learn More and Get Started
Explore the capabilities of Jarvis by diving into the following resources:
- [Documentation](https://codingblogs.hashnode.dev/) - Comprehensive guides on setting up and using Jarvis.
- [Community Forums](https://discord.gg/tSqtvHUJzE) - Join discussions with other Jarvis users.
- [GitHub Repository](https://github.com/Avdhesh-Varshney/Jarvis) - Contribute to the development or get the latest version.
- [YouTube Playlist](https://www.youtube.com/playlist?list=PLPUts_2rBVRVTrLlcB54Hwi6Ws51UWLXU) - Watch tutorials and feature demonstrations.
""")

st.markdown("""
---
**Jarvis** is continually evolving with new features and improvements. Stay tuned for updates and feel free to contribute to its development.
""")

def main():
if not st.session_state.video_shown:
show_intro_video() # Show video if it hasn't been watched
# Display continue button after video
if st.button("Continue to App"):
st.session_state.video_shown = True # Set to True to show main content next
else:
home() # Show main content after video is "watched"

if __name__ == "__main__":
main()