Update app.py
Browse files
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",
|