mahesh1209 commited on
Commit
85e1e37
·
verified ·
1 Parent(s): 6f5e755

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -2,7 +2,7 @@ from flask import Flask, jsonify, request
2
 
3
  app = Flask(__name__)
4
 
5
- API_KEY = "MY_SECRET_KEY_123" # replace with your custom key
6
 
7
  @app.before_request
8
  def check_api_key():
@@ -13,7 +13,3 @@ def check_api_key():
13
  @app.route("/", methods=["GET"])
14
  def hello():
15
  return jsonify({"message": "Hello, World!", "source": "Flask on Hugging Face Spaces"})
16
-
17
- @app.route("/ping", methods=["GET"])
18
- def ping():
19
- return jsonify({"ok": True, "path": "ping"})
 
2
 
3
  app = Flask(__name__)
4
 
5
+ API_KEY = "MY_SECRET_KEY_123"
6
 
7
  @app.before_request
8
  def check_api_key():
 
13
  @app.route("/", methods=["GET"])
14
  def hello():
15
  return jsonify({"message": "Hello, World!", "source": "Flask on Hugging Face Spaces"})