import gradio as gr def image_classifier(review_img, product_img): width = 30 height = 50 return str(width) product_1 = [None, "./2.jpg"] product_2 = [None, "./4.jpg"] product_3 = [None, "./6.jpg"] product_4 = [None, "./18.jpg"] image_input1 = gr.Image(type ="filepath",label= "리뷰 이미지 올리세요") image_input2 = gr.Image(type ="filepath",label= "아래 예시에서 클릭하세요") demo = gr.Interface( fn=image_classifier, inputs= [image_input1,image_input2], outputs="text", examples = [product_1,product_2,product_3,product_4] ) demo.launch()