Update app.py
Browse files11 unmodified lines121314151617181911 unmodified linesimage = gr.Image(shape=(192, 192))label = gr.outputs.Label()examples = ['dog.jpg', 'cat.jpg','dunno.jpg']demo = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)demo.launch()11 unmodified lines12131415161718192021222324252627282911 unmodified linesimage = gr.Image(shape=(192, 192))label = gr.outputs.Label()demo = gr.Interface(fn=classify_image, inputs=image, outputs=label)# demo.launch()# demo = gr.Interface(# fn = classify_image,# inputs=gr.Image(type='pil'),# outputs=[gr.Textbox(label="Predicted Label"), gr.Image(label="Labeled Image")],# title="Image Classification App",# description="Upload an image and get the predicted label and labeled image."# )if __name__ == "__main__":demo.launch(share=True)
app.py+13-3