Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,7 @@ def process_analysis(task_id, text, model_name, topic, threshold):
|
|
65 |
|
66 |
@app.route('/detectHumanInAIText/checkText', methods=['POST'])
|
67 |
def check_text():
|
68 |
-
received_token = request.headers.get("
|
69 |
-
print(f'HF_TOKEN {HF_TOKEN}')
|
70 |
# if received_token != HF_TOKEN:
|
71 |
# return jsonify({"error": "Unauthorized"}), 403 # Forbidden
|
72 |
|
|
|
65 |
|
66 |
@app.route('/detectHumanInAIText/checkText', methods=['POST'])
|
67 |
def check_text():
|
68 |
+
received_token = request.headers.get("Authorization")
|
|
|
69 |
# if received_token != HF_TOKEN:
|
70 |
# return jsonify({"error": "Unauthorized"}), 403 # Forbidden
|
71 |
|