add sample inputs functionality for texbox

This commit is contained in:
dawoodkhan82 2019-07-22 14:31:08 -07:00
parent 68a1c6ae70
commit 32e6669c15

View File

@ -173,6 +173,9 @@ class Webcam(AbstractInput):
class Textbox(AbstractInput):
def __init__(self, sample_inputs=None):
self.sample_inputs = sample_inputs
def get_validation_inputs(self):
return validation_data.ENGLISH_TEXTS
@ -196,6 +199,9 @@ class Textbox(AbstractInput):
f.write(inp)
return filename
def get_sample_inputs(self):
return self.sample_inputs
class ImageUpload(AbstractInput):
def __init__(self, preprocessing_fn=None, shape=(224, 224, 3), image_mode='RGB',