Manas281 commited on
Commit
0109e7a
·
verified ·
1 Parent(s): 4e6a203

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -19,6 +19,12 @@ import pandas as pd
19
  import json
20
  from io import BytesIO
21
  import tempfile
 
 
 
 
 
 
22
 
23
 
24
  # Load environment variables
@@ -69,6 +75,7 @@ api_key = os.getenv('API_KEY')
69
  GEMINI_API_KEY = os.getenv('GEMINI_API')
70
  genai.configure(api_key=GEMINI_API_KEY)
71
 
 
72
 
73
  st.title("🕵️ Recruitment AI 🤖")
74
 
 
19
  import json
20
  from io import BytesIO
21
  import tempfile
22
+ from google.auth.credentials import AnonymousCredentials
23
+ from google.api_core.client_options import ClientOptions
24
+ from google.generative_ai import GenerativeAIClient
25
+
26
+
27
+
28
 
29
 
30
  # Load environment variables
 
75
  GEMINI_API_KEY = os.getenv('GEMINI_API')
76
  genai.configure(api_key=GEMINI_API_KEY)
77
 
78
+ client = GenerativeAIClient(credentials=AnonymousCredentials(), client_options=ClientOptions(api_key=GEMINI_API_KEY))
79
 
80
  st.title("🕵️ Recruitment AI 🤖")
81