mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
renamed class to label
This commit is contained in:
parent
15f0ddb32c
commit
29f8e2703f
@ -1,6 +1,7 @@
|
||||
from abc import ABC, abstractmethod
|
||||
import numpy as np
|
||||
|
||||
|
||||
class AbstractOutput(ABC):
|
||||
"""
|
||||
An abstract class for defining the methods that all gradio inputs should have.
|
||||
@ -29,10 +30,10 @@ class AbstractOutput(ABC):
|
||||
pass
|
||||
|
||||
|
||||
class Class(AbstractOutput):
|
||||
class Label(AbstractOutput):
|
||||
|
||||
def _get_template_path(self):
|
||||
return 'templates/class_output.html'
|
||||
return 'templates/label_output.html'
|
||||
|
||||
def _post_process(self, prediction):
|
||||
"""
|
||||
|
0
test/test_outputs.py
Normal file
0
test/test_outputs.py
Normal file
Loading…
Reference in New Issue
Block a user