mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
added thumbnail field
This commit is contained in:
parent
7421ba8d82
commit
53cf2ed063
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user