Ninad077 commited on
Commit
ee5c4a6
·
verified ·
1 Parent(s): 63b33f6

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -25,11 +25,11 @@ def classify_image(image):
25
  return predicted_class
26
 
27
  # Define the Gradio interface
28
- image_input = gr.inputs.Image(type="pil", label="Upload Image")
29
- label_output = gr.outputs.Label()
30
 
31
  # Create the Gradio interface
32
- interface = gr.Interface(fn=classify_image, inputs=image_input, outputs=label_output, title="Image Classifier")
33
 
34
  # Launch the interface
35
  interface.launch()
 
25
  return predicted_class
26
 
27
  # Define the Gradio interface
28
+ inputs = gr.inputs.Image(type="pil", label="Upload Image")
29
+ outputs = gr.outputs.Label()
30
 
31
  # Create the Gradio interface
32
+ interface = gr.Interface(fn=classify_image, inputs=inputs, outputs=outputs, title="Image Classifier")
33
 
34
  # Launch the interface
35
  interface.launch()