Spaces:
Running
Running
Advanced way of storing ip
Browse files
app.py
CHANGED
@@ -52,6 +52,7 @@ def record_vote(prompt: str, left_chat: List, right_chat: List,
|
|
52 |
"left_model": left_model, "right_model": right_model,
|
53 |
"ip": request.client.host
|
54 |
})
|
|
|
55 |
changeVisible = False
|
56 |
jsonResponse = response.json()
|
57 |
_id = jsonResponse["id"]
|
|
|
52 |
"left_model": left_model, "right_model": right_model,
|
53 |
"ip": request.client.host
|
54 |
})
|
55 |
+
print(request.client.host)
|
56 |
changeVisible = False
|
57 |
jsonResponse = response.json()
|
58 |
_id = jsonResponse["id"]
|