Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -293,14 +293,10 @@ with gr.Blocks() as demo:
|
|
| 293 |
mapping_output = gr.Textbox(lines=10, label="🏷️ 태그 매핑", interactive=False)
|
| 294 |
|
| 295 |
run_button.click(
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
)
|
| 300 |
|
| 301 |
# ✅ 반드시 필요! Gradio 실행
|
| 302 |
-
demo.launch()
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
demo.launch()
|
|
|
|
| 293 |
mapping_output = gr.Textbox(lines=10, label="🏷️ 태그 매핑", interactive=False)
|
| 294 |
|
| 295 |
run_button.click(
|
| 296 |
+
fn=apply_masking, # ← 이걸로 바꿔야 실제 정의된 함수와 연결됨
|
| 297 |
+
inputs=[input_text, keyword_input, replace_input],
|
| 298 |
+
outputs=[masked_output, mapping_output]
|
| 299 |
)
|
| 300 |
|
| 301 |
# ✅ 반드시 필요! Gradio 실행
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
demo.launch()
|