JinHyeong99 commited on
Commit
64b646f
ยท
1 Parent(s): 3af3698
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -45,7 +45,9 @@ def segment_image(image):
45
 
46
  result_image = Image.fromarray(result_color.astype(np.uint8))
47
 
48
- return result_image
 
 
49
 
50
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜
51
  iface = gr.Interface(
 
45
 
46
  result_image = Image.fromarray(result_color.astype(np.uint8))
47
 
48
+ combined_image = Image.blend(image.convert("RGBA"), result_image.convert("RGBA"), alpha=0.5)
49
+
50
+ return combined_image
51
 
52
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜
53
  iface = gr.Interface(