Skip to content

Commit 59734d9

Browse files
committed
Updated and attempt at brython
1 parent 50947ca commit 59734d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+31
-13337
lines changed

AI Generator.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import google.generativeai as genai
2+
from browser import document
3+
4+
5+
API = "AIzaSyDABPIwb1sMDdqm4r11_a_LCkRuFtvZHxk"
6+
7+
genai.configure(api_key=API) # Tells gen AI which API to use
8+
model = genai.GenerativeModel('gemini-pro') # Assigns which model is in use and names it model
9+
chat = model.start_chat(history=[])
10+
response = chat.send_message("You are a personal digital assistant, built into a pair of smart glasses. Your name is SPECTRUM. You are a little bit like JARVIS from Iron Man. You are kind and friendly. Please say hello in a kind, creative, and short way. Come up with something new every time. Do not say anything else.")
11+
12+
document <= response.text

generative-ai-python-main/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

generative-ai-python-main/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 94 deletions
This file was deleted.

generative-ai-python-main/CONTRIBUTING.md

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)