vict0rsch commited on
Commit
7d48feb
1 Parent(s): bed8309
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -4,6 +4,7 @@
4
  import os
5
  from textwrap import dedent
6
  from urllib import parse
 
7
 
8
  import googlemaps
9
  import gradio as gr
@@ -191,6 +192,9 @@ def predict(cg: ClimateGAN, api_key):
191
 
192
  if __name__ == "__main__":
193
 
 
 
 
194
  api_key = os.environ.get("GMAPS_API_KEY")
195
  gmaps = None
196
  if api_key is not None:
 
4
  import os
5
  from textwrap import dedent
6
  from urllib import parse
7
+ from requests import get
8
 
9
  import googlemaps
10
  import gradio as gr
 
192
 
193
  if __name__ == "__main__":
194
 
195
+ ip = get("https://api.ipify.org").content.decode("utf8")
196
+ print("My public IP address is: {}".format(ip))
197
+
198
  api_key = os.environ.get("GMAPS_API_KEY")
199
  gmaps = None
200
  if api_key is not None: