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

Add GUI, Modularise code, Add new features #13

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix newsreader issue
Now doesn't always read the news no matter what the instruction is. Only reads the news when requested
NathanVials-Student committed Jul 29, 2024
commit f6e8e4b913d2c639e4dc84ac97ec2f80547f9401
Binary file modified Jarvis/__pycache__/evaluate_query.cpython-312.pyc
Binary file not shown.
6 changes: 5 additions & 1 deletion Jarvis/evaluate_query.py
Original file line number Diff line number Diff line change
@@ -143,9 +143,13 @@ def evaluate_query(query, gender):
speak("I've taken screenshot, please check it", gender)

#read headlines
if "headlines" or "news" in query:
elif "headline" in query:
read_headlines(gender)

elif "headline" not in query:
if "news" in query:
read_headlines(gender)

#end the program
elif "offline" in query:
quit()