Qilan2 commited on
Commit
2185326
·
verified ·
1 Parent(s): 06b6edc

Update sbx/a/c1.py

Browse files
Files changed (1) hide show
  1. sbx/a/c1.py +3 -5
sbx/a/c1.py CHANGED
@@ -67,11 +67,9 @@ def start_simple_api(port=5000):
67
  app = Flask(__name__)
68
 
69
  @app.route('/', methods=['GET'])
70
- def index():
71
- """根路由,返回 HTML 页面"""
72
- return render_template_string(HTML_PAGE)
73
- # def home():
74
- # return jsonify({'message': 'API 服务运行中', 'status': 'ok'})
75
 
76
  # 在后台线程中启动服务
77
  thread = threading.Thread(
 
67
  app = Flask(__name__)
68
 
69
  @app.route('/', methods=['GET'])
70
+ def home():
71
+ return render_template_string(HTML_PAGE)
72
+ # return jsonify({'message': 'API 服务运行中', 'status': 'ok'})
 
 
73
 
74
  # 在后台线程中启动服务
75
  thread = threading.Thread(