Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ llm = ChatGoogleGenerativeAI(
|
|
31 |
|
32 |
|
33 |
def get_location_from_ip():
|
34 |
-
ip =
|
35 |
response = requests.get(f"https://ipapi.co/{ip}/json/").json()
|
36 |
return {
|
37 |
'city': response.get('city'),
|
|
|
31 |
|
32 |
|
33 |
def get_location_from_ip():
|
34 |
+
ip =requests.get('https://api.ipify.org?format=json').json()['ip']
|
35 |
response = requests.get(f"https://ipapi.co/{ip}/json/").json()
|
36 |
return {
|
37 |
'city': response.get('city'),
|