hwberry2 commited on
Commit
693b541
·
1 Parent(s): 828555f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -15,7 +15,8 @@ with gr.Blocks() as demo:
15
  with gr.Accordion("Click for Instructions:"):
16
  gr.Markdown(
17
  """
18
- * uploading an image will setup, train, and evaluate the base model
 
19
  """)
20
 
21
  # Train, evaluate and test a ML
@@ -93,8 +94,8 @@ with gr.Blocks() as demo:
93
  image_data = gr.Image(label="Upload Image", type="numpy", image_mode="L", shape=[28,28], invert_colors=True)
94
  with gr.Column(scale=1):
95
  model_prediction = gr.Text(label="Model Prediction", interactive=False)
96
- image_data.change(classifyImage, image_data, model_prediction)
97
- image_data.clear(do_nothing)
98
 
99
 
100
  # creates a local web server
 
15
  with gr.Accordion("Click for Instructions:"):
16
  gr.Markdown(
17
  """
18
+ * uploading an image will engage the model in image classsification
19
+ * trained on the following image types: 'T-shirt/top', 'Trouser', 'Pullover', 'Dress', 'Coat','Sandal', 'Shirt', 'Sneaker', 'Bag', 'Ankle boot'
20
  """)
21
 
22
  # Train, evaluate and test a ML
 
94
  image_data = gr.Image(label="Upload Image", type="numpy", image_mode="L", shape=[28,28], invert_colors=True)
95
  with gr.Column(scale=1):
96
  model_prediction = gr.Text(label="Model Prediction", interactive=False)
97
+ image_data.change(classifyImage, image_data, model_prediction)
98
+ image_data.clear(do_nothing)
99
 
100
 
101
  # creates a local web server