mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-06 10:25:17 +08:00
analytics endpoint fix
This commit is contained in:
parent
42dfc7b7db
commit
12d3539e1b
@ -105,6 +105,7 @@ class Interface:
|
||||
'ip_address': ip_address
|
||||
}
|
||||
try:
|
||||
print("try initiated")
|
||||
requests.post(analytics_url + 'gradio-initiated-analytics/',
|
||||
data=data)
|
||||
except requests.ConnectionError:
|
||||
@ -397,7 +398,7 @@ class Interface:
|
||||
'ip_address': ip_address
|
||||
}
|
||||
try:
|
||||
requests.post(analytics_url + 'gradio-hosted-launched-analytics/',
|
||||
requests.post(analytics_url + 'gradio-launched-analytics/',
|
||||
data=data)
|
||||
except requests.ConnectionError:
|
||||
print("Connection Error")
|
||||
|
Loading…
Reference in New Issue
Block a user