SHEN1017 commited on
Commit
c33a701
·
verified ·
1 Parent(s): fecc78e

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,8 +20,8 @@ def index():
20
  @app.route("/reset_pipeline", methods=["POST"])
21
  def reset_pipeline():
22
  global pipeline
23
- pipeline = original_pipeline
24
- return jsonify({"message": "Pipeline reset successfully"})
25
 
26
  @app.route("/run_pipeline", methods=["POST"])
27
  def run_pipeline():
 
20
  @app.route("/reset_pipeline", methods=["POST"])
21
  def reset_pipeline():
22
  global pipeline
23
+ pipeline = copy.deepcopy(original_pipeline) # 重置 pipeline
24
+ return jsonify({"message": "Pipeline reset successfully."})
25
 
26
  @app.route("/run_pipeline", methods=["POST"])
27
  def run_pipeline():