summaryrefslogtreecommitdiff
path: root/hello.py
diff options
context:
space:
mode:
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__":