codeslord commited on
Commit
c35c94a
·
1 Parent(s): 649def5
Files changed (3) hide show
  1. .env.example +1 -0
  2. .gitignore +33 -0
  3. tools.py +4 -0
.env.example ADDED
@@ -0,0 +1 @@
 
 
1
+ GEMINI_API_KEY=your_api_key_here
.gitignore CHANGED
@@ -1 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  app.log
 
 
 
 
1
+ # General
2
+ .DS_Store
3
+
4
+ # Python
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+ *.manifest
9
+ *.spec
10
+
11
+ # Virtual Environments
12
+ .env
13
+ .venv
14
+ env/
15
+ venv/
16
+ ENV/
17
+
18
+ # Distribution / Packaging
19
+ build/
20
+ dist/
21
+ *.egg-info/
22
+ .eggs/
23
+
24
+ # IDEs
25
+ .idea/
26
+ .vscode/
27
+ *.swp
28
+
29
+ # Logs
30
+ *.log
31
  app.log
32
+
33
+ # Gradio
34
+ flagged/
tools.py CHANGED
@@ -9,6 +9,10 @@ from PIL import Image
9
  import ffmpeg
10
  from google import genai
11
  from google.genai import types
 
 
 
 
12
 
13
  # Initialize API Key from environment
14
  # Users should set GEMINI_API_KEY in their environment variables
 
9
  import ffmpeg
10
  from google import genai
11
  from google.genai import types
12
+ from dotenv import load_dotenv
13
+
14
+ # Load environment variables from .env file if present
15
+ load_dotenv()
16
 
17
  # Initialize API Key from environment
18
  # Users should set GEMINI_API_KEY in their environment variables