analytics endpoint fix

This commit is contained in:
dawoodkhan82 2020-07-09 14:41:28 -04:00
parent 42dfc7b7db
commit 12d3539e1b

View File

@ -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")