minhwai commited on
Commit
8f3ffd0
ยท
verified ยท
1 Parent(s): d34cf4e

Update app.py

Browse files

"ํ•œ๊ตญ์–ด๋กœ"

Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -51,26 +51,26 @@ def apply_deepfake(image):
51
  result = pipe(prompt, init_image=image, strength=0.75)
52
  return result.images[0]
53
 
54
- st.title("Image Processing MVP")
55
 
56
- uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "png", "jpeg"])
57
 
58
  if uploaded_file is not None:
59
  image = Image.open(uploaded_file)
60
- st.image(image, caption='Uploaded Image.', use_column_width=True)
61
  st.write("")
62
- st.write("Processing...")
63
 
64
- action = st.radio("Choose an action:", ('A', 'B', 'Deepfake'))
65
 
66
  if action == 'A':
67
  # Just display the original image
68
- st.image(image, caption='Original Image.', use_column_width=True)
69
  elif action == 'B':
70
  # Add dark noise to the original image
71
  dark_noisy_image = add_dark_noise(image)
72
- st.image(dark_noisy_image, caption='Image with Dark Noise.', use_column_width=True)
73
- elif action == 'Deepfake':
74
  # Apply deepfake transformation
75
  deepfake_image = apply_deepfake(image)
76
- st.image(deepfake_image, caption='Deepfake Image.', use_column_width=True)
 
51
  result = pipe(prompt, init_image=image, strength=0.75)
52
  return result.images[0]
53
 
54
+ st.title("์ด๋ฏธ์ง€ ์ฒ˜๋ฆฌ MVP")
55
 
56
+ uploaded_file = st.file_uploader("์ด๋ฏธ์ง€๋ฅผ ์„ ํƒํ•˜์„ธ์š”...", type=["jpg", "png", "jpeg"])
57
 
58
  if uploaded_file is not None:
59
  image = Image.open(uploaded_file)
60
+ st.image(image, caption='์—…๋กœ๋“œ๋œ ์ด๋ฏธ์ง€', use_column_width=True)
61
  st.write("")
62
+ st.write("์ฒ˜๋ฆฌ ์ค‘...")
63
 
64
+ action = st.radio("์ž‘์—…์„ ์„ ํƒํ•˜์„ธ์š”:", ('A', 'B', '๋”ฅํŽ˜์ดํฌ'))
65
 
66
  if action == 'A':
67
  # Just display the original image
68
+ st.image(image, caption='์›๋ณธ ์ด๋ฏธ์ง€', use_column_width=True)
69
  elif action == 'B':
70
  # Add dark noise to the original image
71
  dark_noisy_image = add_dark_noise(image)
72
+ st.image(dark_noisy_image, caption='์–ด๋‘์šด ๋…ธ์ด์ฆˆ๊ฐ€ ์ถ”๊ฐ€๋œ ์ด๋ฏธ์ง€', use_column_width=True)
73
+ elif action == '๋”ฅํŽ˜์ดํฌ':
74
  # Apply deepfake transformation
75
  deepfake_image = apply_deepfake(image)
76
+ st.image(deepfake_image, caption='๋”ฅํŽ˜์ดํฌ ์ด๋ฏธ์ง€', use_column_width=True)