renamed class to label

This commit is contained in:
Abubakar Abid 2019-02-27 16:45:13 -08:00
parent 15f0ddb32c
commit 29f8e2703f
3 changed files with 3 additions and 2 deletions

View File

@ -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
View File