ssboost commited on
Commit
7c6a5f6
ยท
verified ยท
1 Parent(s): 92d9d2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -16,7 +16,7 @@ logger = logging.getLogger(__name__)
16
  def process_image(password, input_image):
17
  # ๋น„๋ฐ€๋ฒˆํ˜ธ ๊ฒ€์ฆ
18
  if password != "1089":
19
- raise ValueError("์ž˜๋ชป๋œ ๋น„๋ฐ€๋ฒˆํ˜ธ์ž…๋‹ˆ๋‹ค.")
20
 
21
  try:
22
  logger.info("=== ์ฒ˜๋ฆฌ ์‹œ์ž‘ ===")
@@ -80,15 +80,13 @@ def process_image(password, input_image):
80
  return None
81
 
82
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
83
- gr.Markdown("# Background Remover (Password Protected)")
84
-
85
  with gr.Row():
86
  with gr.Column():
87
  # ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ ํ•„๋“œ
88
  password_input = gr.Textbox(
89
- label="๋น„๋ฐ€๋ฒˆํ˜ธ",
90
  type="password",
91
- placeholder="๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”"
92
  )
93
  input_image = gr.Image(
94
  type="filepath",
 
16
  def process_image(password, input_image):
17
  # ๋น„๋ฐ€๋ฒˆํ˜ธ ๊ฒ€์ฆ
18
  if password != "1089":
19
+ raise ValueError("์ž˜๋ชป๋œ ์ž…๋ ฅ๋ ฅ์ž…๋‹ˆ๋‹ค.")
20
 
21
  try:
22
  logger.info("=== ์ฒ˜๋ฆฌ ์‹œ์ž‘ ===")
 
80
  return None
81
 
82
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
 
 
83
  with gr.Row():
84
  with gr.Column():
85
  # ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ ํ•„๋“œ
86
  password_input = gr.Textbox(
87
+ label="์ •๋ณด",
88
  type="password",
89
+ placeholder="์ •๋ณด๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”"
90
  )
91
  input_image = gr.Image(
92
  type="filepath",