rajkhanke commited on
Commit
fc9d129
·
verified ·
1 Parent(s): a4ddf48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,11 +3,11 @@ import json
3
  from flask import Flask, render_template, request, jsonify, Response
4
  from google import genai
5
  import markdown
6
-
7
  app = Flask(__name__)
8
 
9
- # Replace with your actual Gemini API key
10
- client = genai.Client(api_key="GOOGLE_API_KEY")
11
 
12
  def validate_coordinates(lat, lon):
13
  """Validate and convert latitude and longitude to float."""
 
3
  from flask import Flask, render_template, request, jsonify, Response
4
  from google import genai
5
  import markdown
6
+ import os
7
  app = Flask(__name__)
8
 
9
+ api_key = os.getenv("GEMINI_API_KEY")
10
+ client = genai.Client(api_key=api_key)
11
 
12
  def validate_coordinates(lat, lon):
13
  """Validate and convert latitude and longitude to float."""