summaryrefslogtreecommitdiff
path: root/hello.py
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-02-19 20:57:49 +0100
committerJasper Ras <jras@hostnet.nl>2025-02-19 20:57:49 +0100
commit1231141941fba320e038175792e213dc26a8636c (patch)
tree0350b25b3b61b9e5363b5a47141f134badccd434 /hello.py
parentea1734c60e378d8777ad872354bd7dd90d50e1f7 (diff)
balegh
Diffstat (limited to 'hello.py')
-rw-r--r--hello.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/hello.py b/hello.py
index 2ce8296..36b8e05 100644
--- a/hello.py
+++ b/hello.py
@@ -1,5 +1,23 @@
+import sys
+import os
+import requests
+
+from google import genai
+
+
def main():
- print("Hello from genai!")
+ key = os.getenv("API_KEY")
+ client = genai.Client(api_key=key)
+ # input = sys.argv[1]
+
+ curl = requests.get("https://www.folderz.nl/")
+ curl.raise_for_status()
+
+ # print(curl.text)
+
+ response = client.models.generate_content(model="gemini-2.0-flash", contents=input)
+
+ print(response.text)
if __name__ == "__main__":