mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
Update interface.py
The `preprocessed_input` may not has a `shape` attribute.
This commit is contained in:
parent
0169f73f35
commit
91fd9e4803
@ -136,7 +136,7 @@ class Interface:
|
||||
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
|
||||
"""
|
||||
print(preprocessed_input.shape)
|
||||
# print(preprocessed_input.shape)
|
||||
if self.model_type == "sklearn":
|
||||
return self.model_obj.predict(preprocessed_input)
|
||||
elif self.model_type == "keras":
|
||||
|
Loading…
Reference in New Issue
Block a user