From 29f8e2703f56b264bd99be3d7b1d168b67d0411b Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Wed, 27 Feb 2019 16:45:13 -0800 Subject: [PATCH] renamed class to label --- gradio/outputs.py | 5 +++-- gradio/templates/{class_output.html => label_output.html} | 0 test/test_outputs.py | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename gradio/templates/{class_output.html => label_output.html} (100%) create mode 100644 test/test_outputs.py diff --git a/gradio/outputs.py b/gradio/outputs.py index 9a0e5b6fc0..6d239b3d56 100644 --- a/gradio/outputs.py +++ b/gradio/outputs.py @@ -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): """ diff --git a/gradio/templates/class_output.html b/gradio/templates/label_output.html similarity index 100% rename from gradio/templates/class_output.html rename to gradio/templates/label_output.html diff --git a/test/test_outputs.py b/test/test_outputs.py new file mode 100644 index 0000000000..e69de29bb2