mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
commit
38f814560a
@ -135,8 +135,7 @@ class Interface:
|
|||||||
Method that calls the relevant method of the model object to make a prediction.
|
Method that calls the relevant method of the model object to make a prediction.
|
||||||
:param preprocessed_input: the preprocessed input returned by the input interface
|
:param preprocessed_input: the preprocessed input returned by the input interface
|
||||||
"""
|
"""
|
||||||
|
# print(preprocessed_input.shape)
|
||||||
# print(preprocessed_input.shape)
|
|
||||||
if self.model_type == "sklearn":
|
if self.model_type == "sklearn":
|
||||||
return self.model_obj.predict(preprocessed_input)
|
return self.model_obj.predict(preprocessed_input)
|
||||||
elif self.model_type == "keras":
|
elif self.model_type == "keras":
|
||||||
|
Loading…
Reference in New Issue
Block a user