idkash1 commited on
Commit
56c7adc
·
verified ·
1 Parent(s): 6b749ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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("HF_TOKEN")
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