Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,11 +115,8 @@ def process_text_detection(image, text_query, threshold):
|
|
| 115 |
# --- 界面 ---
|
| 116 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 117 |
gr.Markdown("# 🚀 SAM 3 文本自动检测工具")
|
| 118 |
-
gr.Markdown("由于 Hugging Face 的 SAM3 暂未开放上传图片样本的接口,此版本专注于**强大的文本驱动检测**。")
|
| 119 |
|
| 120 |
with gr.Row():
|
| 121 |
with gr.Column():
|
| 122 |
t_img_in = gr.Image(type="pil", label="上传原图")
|
| 123 |
-
t_query = gr.Textbox(
|
| 124 |
-
label="输入你想检测的内容 (必须用英文)",
|
| 125 |
-
placeholder="例如: watermark, logo, chinese text, red
|
|
|
|
| 115 |
# --- 界面 ---
|
| 116 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 117 |
gr.Markdown("# 🚀 SAM 3 文本自动检测工具")
|
|
|
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
with gr.Column():
|
| 121 |
t_img_in = gr.Image(type="pil", label="上传原图")
|
| 122 |
+
t_query = gr.Textbox(
|
|
|
|
|
|