Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def image_classification(input1, input2):
|
|
30 |
y_test_predicted_label = kNN_classifier.predict(image)
|
31 |
|
32 |
output1 = y_test_predicted_label[0]# text output example
|
33 |
-
output2 = y_test_predicted_label[1
|
34 |
return output1,output2
|
35 |
|
36 |
# Step 6.4: Put all three component together into the gradio's interface function
|
|
|
30 |
y_test_predicted_label = kNN_classifier.predict(image)
|
31 |
|
32 |
output1 = y_test_predicted_label[0]# text output example
|
33 |
+
output2 = y_test_predicted_label[1] # image-like array output example
|
34 |
return output1,output2
|
35 |
|
36 |
# Step 6.4: Put all three component together into the gradio's interface function
|