added thumbnail field

This commit is contained in:
Abubakar Abid 2020-06-29 16:57:10 -05:00
parent 7421ba8d82
commit 53cf2ed063

View File

@ -31,7 +31,7 @@ class Interface:
def __init__(self, fn, inputs, outputs, saliency=None, verbose=False,
live=False, show_input=True, show_output=True,
load_fn=None, capture_session=False, title=None, description=None,
server_name=LOCALHOST_IP):
thumbnail=None, server_name=LOCALHOST_IP):
"""
:param fn: a function that will process the input panel data from the interface and return the output panel data.
:param inputs: a string or `AbstractInput` representing the input interface.
@ -82,6 +82,7 @@ class Interface:
self.server_name = server_name
self.title = title
self.description = description
self.thumbnail = thumbnail
def get_config_file(self):
return {
@ -97,6 +98,7 @@ class Interface:
"show_output": self.show_output,
"title": self.title,
"description": self.description,
"thumbnail": self.thumbnail
}
def process(self, raw_input):