왓슨 기초

This commit is contained in:
Mingu Kim
2026-05-26 22:08:02 +09:00
parent 8a18105599
commit a1cb6fcdf9
26 changed files with 3921 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import gradio as gr
def predict(image):
# 이미지 width, height 정보 리턴
width, height = image.size
return f"""
이미지 분석 결과
- 가로 : {width}px
- 세로 : {height}px
- 이미지 모드 : {image.mode}
"""
interface = gr.Interface(predict, gr.Image(type="pil"), gr.Textbox())
interface.launch()