This commit is contained in:
Ali Abid 2020-07-16 12:56:45 -07:00
commit 9d995a1677

View File

@ -117,9 +117,13 @@ def get_first_available_port(initial, final):
) )
def send_prediction_analytics(interface): def send_prediction_analytics(interface):
data = {'input_interface': interface.input_interfaces, data = {'title': interface.title,
'description': interface.description,
'thumbnail': interface.thumbnail,
'input_interface': interface.input_interfaces,
'output_interface': interface.output_interfaces, 'output_interface': interface.output_interfaces,
} }
print(data)
try: try:
requests.post( requests.post(
analytics_url + 'gradio-prediction-analytics/', analytics_url + 'gradio-prediction-analytics/',