mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
cleaning interface.py
This commit is contained in:
parent
9151bff97d
commit
7a23e8f748
@ -38,7 +38,7 @@ JSON_PATH = os.path.join(os.path.dirname(gradio.__file__), "launches.json")
|
||||
|
||||
class Interface:
|
||||
"""
|
||||
Interfaces are created with Gradio by constructing a `gradio.Interface()` object.
|
||||
Interfaces are created with Gradio by constructing a `gradio.Interface()` object or by calling `gradio.Interface.load()`.
|
||||
"""
|
||||
instances = weakref.WeakSet()
|
||||
|
||||
@ -47,8 +47,7 @@ class Interface:
|
||||
"""
|
||||
:return: list of all current instances.
|
||||
"""
|
||||
return list(
|
||||
Interface.instances)
|
||||
return list(Interface.instances)
|
||||
|
||||
@classmethod
|
||||
def load(cls, name, src=None, api_key=None, alias=None, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user