tonyassi commited on
Commit
5e26b89
·
verified ·
1 Parent(s): 0c89d71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,7 +4,7 @@ import logging
4
  app = Flask(__name__)
5
 
6
  # Configure logging to display outputs in Hugging Face logs
7
- logging.basicConfig(level=logging.INFO)
8
 
9
  @app.route('/')
10
  def index():
@@ -13,9 +13,9 @@ def index():
13
  @app.route('/json', methods=['POST'])
14
  def handle_json():
15
  data = request.get_json()
16
-
17
  # Log the request for debugging
18
- logging.info(f"Received JSON: {data}")
19
 
20
  return jsonify(data), 200 # Return JSON response with HTTP 200
21
 
 
4
  app = Flask(__name__)
5
 
6
  # Configure logging to display outputs in Hugging Face logs
7
+ #logging.basicConfig(level=logging.INFO)
8
 
9
  @app.route('/')
10
  def index():
 
13
  @app.route('/json', methods=['POST'])
14
  def handle_json():
15
  data = request.get_json()
16
+ print(data)
17
  # Log the request for debugging
18
+ #logging.info(f"Received JSON: {data}")
19
 
20
  return jsonify(data), 200 # Return JSON response with HTTP 200
21