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

Update windows installer color hints #7

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Changes from all 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
14 changes: 7 additions & 7 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,19 @@ def make_child_dir(dir):
print("you can now re-lode the terminal")
print(f"{ansi["Bold Green"]}For more projects visit github.com/mintRaven-05{ansi["White"]}")
elif platform.architecture()[1] == "WindowsPE":
print("collecting module 1 of 1")
print(f"{ansi["Green"]}[+] collecting modules 1 of 1{ansi["White"]}")
time.sleep(1)
subprocess.run("pip install google-generativeai")
print("module collected")
print(f"{ansi["Green"]}[+]module installed{ansi["White"]}")
time.sleep(1)
MODEL_NAME = input("""
MODEL_NAME = input(f"""{ansi["Yellow"]}
By what name would you like to address Geminux ?
Default name is Geminux [This is an optional parameter, you can change the name later from ~/.config/geminux/config.json]
press enter to keep default settings or enter a name if you want.
>""")
>{ansi["White"]}""")
if MODEL_NAME == "":
MODEL_NAME = "Geminux"
API_KEY = input("Enter your API key : ")
API_KEY = input(f"{ansi["Yellow"]}Enter your API key : {ansi["White"]}")
with open("config\\config.json", "r") as file:
json_data = json.load(file)
file.close()
Expand All @@ -149,7 +149,7 @@ def make_child_dir(dir):
with open("config\\config.json", "w") as file:
json.dump(json_data, file)
file.close()
print("\033[0;32m[+]\033[0;37m Config file generated")
print(f"{ansi["Bold Green"]}Config file generated")
time.sleep(1)
try:
parent_dir = f"{HOME}\.Geminux"
Expand Down Expand Up @@ -195,7 +195,7 @@ def make_child_dir(dir):
shutil.copy2("./uninstall.py", f"{HOME}\.Geminux")
time.sleep(0.5)

print("Installation completed, you can add Geminux to your $PROFILE")
print(f"Installation completed, you can add Geminux to your $PROFILE{ansi["White"]}")

else:
print(f"{ansi["Red"]}Geminux is only compatible with Linux and Windows, you can install manually in that case !{ansi["White"]}")
Expand Down