tonyassi commited on
Commit
c314cdb
·
verified ·
1 Parent(s): 7ca4751

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -3,9 +3,6 @@ import logging
3
 
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():
11
  content ="""
@@ -21,9 +18,8 @@ def index():
21
  @app.route('/json', methods=['POST'])
22
  def handle_json():
23
  data = request.get_json()
 
24
  print(data)
25
- # Log the request for debugging
26
- #logging.info(f"Received JSON: {data}")
27
 
28
  return jsonify(data), 200 # Return JSON response with HTTP 200
29
 
 
3
 
4
  app = Flask(__name__)
5
 
 
 
 
6
  @app.route('/')
7
  def index():
8
  content ="""
 
18
  @app.route('/json', methods=['POST'])
19
  def handle_json():
20
  data = request.get_json()
21
+
22
  print(data)
 
 
23
 
24
  return jsonify(data), 200 # Return JSON response with HTTP 200
25