Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,13 +39,22 @@ best_softmax_reg.fit(small_x_train_reshape, small_y_train)
|
|
39 |
|
40 |
best_nn = MLPClassifier(hidden_layer_sizes=(100, 100), activation='relu', solver='lbfgs')
|
41 |
best_nn.fit(small_x_train_reshape, small_y_train)
|
42 |
-
|
43 |
input_module1 = gr.Image(label = "test_image", image_mode='L', shape = (28,28))
|
44 |
input_module2 = gr.Dropdown(choices=['Softmax Regression', 'Neural Network (sklearn)'], label = "Select Algorithm")
|
45 |
output_module1 = gr.Textbox(label = "Predicted Class")
|
46 |
output_module2 = gr.Label(label = "Predicted Probability")
|
|
|
|
|
|
|
|
|
|
|
47 |
|
|
|
|
|
48 |
|
|
|
|
|
49 |
|
50 |
|
51 |
|
|
|
39 |
|
40 |
best_nn = MLPClassifier(hidden_layer_sizes=(100, 100), activation='relu', solver='lbfgs')
|
41 |
best_nn.fit(small_x_train_reshape, small_y_train)
|
42 |
+
'''
|
43 |
input_module1 = gr.Image(label = "test_image", image_mode='L', shape = (28,28))
|
44 |
input_module2 = gr.Dropdown(choices=['Softmax Regression', 'Neural Network (sklearn)'], label = "Select Algorithm")
|
45 |
output_module1 = gr.Textbox(label = "Predicted Class")
|
46 |
output_module2 = gr.Label(label = "Predicted Probability")
|
47 |
+
'''
|
48 |
+
input_module1 = gr.Image(label = "test_image", image_mode='L')
|
49 |
+
|
50 |
+
# Specify method dropdown menu
|
51 |
+
input_module2 = gr.Dropdown(choices=['Softmax Regression', 'Neural Network (sklearn)', 'Neural Network (keras) two-layer','Neural Network (keras) three-layer'], label = "Select Algorithm")
|
52 |
|
53 |
+
# Specify output 1
|
54 |
+
output_module1 = gr.Textbox(label = "Predicted Class")
|
55 |
|
56 |
+
# Specify output 2
|
57 |
+
output_module2 = gr.Label(label = "Predict Probability")
|
58 |
|
59 |
|
60 |
|