Spaces:
Runtime error
Runtime error
| 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() |