Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -94,8 +94,12 @@ class Chatbot:
|
|
94 |
#self.chat_history = []
|
95 |
dt = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
96 |
#print(dt)
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
|
|
99 |
#print(ip)
|
100 |
|
101 |
#self.chat_history.append({"role": "datetime", "content": dt})
|
|
|
94 |
#self.chat_history = []
|
95 |
dt = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
96 |
#print(dt)
|
97 |
+
|
98 |
+
#hostname = socket.gethostname() # this returns server hostname
|
99 |
+
#ip = socket.gethostbyname(hostname)
|
100 |
+
client_socket = socket.socket()
|
101 |
+
client_socket.connect(("huggingface.co",80))
|
102 |
+
ip = client_socket.getpeername()[0]
|
103 |
#print(ip)
|
104 |
|
105 |
#self.chat_history.append({"role": "datetime", "content": dt})
|