Merge branch 'master' of github.com:gradio-app/gradio-UI

This commit is contained in:
Abubakar Abid 2020-07-09 15:16:26 -05:00
commit 3d3223680c

View File

@ -20,13 +20,11 @@ from IPython import get_ipython
import sys import sys
import weakref import weakref
import analytics import analytics
import socket
PKG_VERSION_URL = "https://gradio.app/api/pkg-version" PKG_VERSION_URL = "https://gradio.app/api/pkg-version"
analytics.write_key = "uxIFddIEuuUcFLf9VgH2teTEtPlWdkNy" analytics.write_key = "uxIFddIEuuUcFLf9VgH2teTEtPlWdkNy"
analytics_url = 'https://api.gradio.app/' analytics_url = 'https://api.gradio.app/'
hostname = socket.gethostname()
try: try:
ip_address = requests.get('https://api.ipify.org').text ip_address = requests.get('https://api.ipify.org').text
except requests.ConnectionError: except requests.ConnectionError:
@ -104,7 +102,6 @@ class Interface:
'saliency': saliency, 'saliency': saliency,
'live': live, 'live': live,
'capture_session': capture_session, 'capture_session': capture_session,
'host_name': hostname,
'ip_address': ip_address 'ip_address': ip_address
} }
@ -396,7 +393,6 @@ class Interface:
'is_google_colab': is_colab, 'is_google_colab': is_colab,
'is_sharing_on': share, 'is_sharing_on': share,
'share_url': share_url, 'share_url': share_url,
'host_name': hostname,
'ip_address': ip_address 'ip_address': ip_address
} }
try: try: