fdsgsfjsfg commited on
Commit
54b86f4
·
verified ·
1 Parent(s): 74c2355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
 
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():