Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,8 @@ def process_text_detection(image, text_query, threshold):
|
|
| 71 |
except Exception as e:
|
| 72 |
return image, f"❌ 错误: {str(e)}"
|
| 73 |
|
| 74 |
-
|
|
|
|
| 75 |
gr.Markdown("# 🚀 SAM 3 文本自动检测工具")
|
| 76 |
with gr.Row():
|
| 77 |
with gr.Column():
|
|
|
|
| 71 |
except Exception as e:
|
| 72 |
return image, f"❌ 错误: {str(e)}"
|
| 73 |
|
| 74 |
+
# 就在这一行,去掉了 theme 相关的参数
|
| 75 |
+
with gr.Blocks() as demo:
|
| 76 |
gr.Markdown("# 🚀 SAM 3 文本自动检测工具")
|
| 77 |
with gr.Row():
|
| 78 |
with gr.Column():
|