YC-Chen commited on
Commit
3749bbd
1 Parent(s): 48d041a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -7,7 +7,11 @@ import gradio as gr
7
  from transformers import AutoTokenizer
8
  import psycopg2
9
 
10
- print(json.loads(requests.get("https://ip.seeip.org/jsonip?").text)["ip"])
 
 
 
 
11
 
12
  DESCRIPTION = """
13
  # Demo: Breeze-7B-Instruct-v0.1
 
7
  from transformers import AutoTokenizer
8
  import psycopg2
9
 
10
+
11
+ import socket
12
+ hostname = socket.getfqdn()
13
+ print("IP Address:", socket.gethostbyname_ex(hostname)[2][1])
14
+
15
 
16
  DESCRIPTION = """
17
  # Demo: Breeze-7B-Instruct-v0.1