File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def create_app():
119119
120120@app .route ("/recommend" , methods = ["GET" ])
121121def recommend ():
122- global model , train_set
122+ global model , train_set # noqa: F824
123123
124124 if model is None :
125125 return "Model is not yet loaded. Please try again later." , 400
@@ -187,7 +187,7 @@ def add_feedback():
187187
188188@app .route ("/evaluate" , methods = ["POST" ])
189189def evaluate ():
190- global model , train_set , metric_classnames
190+ global model , train_set , metric_classnames # noqa: F824
191191
192192 if model is None :
193193 return "Model is not yet loaded. Please try again later." , 400
@@ -241,7 +241,7 @@ def validate_query(query):
241241
242242
243243def process_evaluation (test_set , query , exclude_unknowns ):
244- global model , train_set
244+ global model , train_set # noqa: F824
245245
246246 rating_threshold = query .get ("rating_threshold" , 1.0 )
247247 user_based = (
You can’t perform that action at this time.
0 commit comments