Junr-syl commited on
Commit
c836c2f
1 Parent(s): 522b706

Update src/app.py

Browse files
Files changed (1) hide show
  1. src/app.py +3 -3
src/app.py CHANGED
@@ -11,7 +11,7 @@ import logging
11
  app=Flask(__name__)
12
 
13
  # Configure logging
14
- logging.basicConfig(filename='app.log', level=logging.INFO)
15
  """
16
  Functions for request/response validation
17
  """
@@ -72,7 +72,7 @@ es = Elasticsearch(
72
  "https://92d997736474439dae5ccfaedc2ad990.us-central1.gcp.cloud.es.io:443",
73
  api_key="Ym16RzI0b0JIcXpRTU9NQUNUNE46YnBmaUtCWHdTNXlnN1dZR2w4Rllqdw=="
74
  )
75
- app.logger.info(msg='es instance created')
76
  """
77
  Question asking endpoint
78
 
@@ -87,7 +87,7 @@ def receive_question():
87
 
88
  # Validate request data
89
  if not validate_request(question_data):
90
- app.logger.error(msg='Invalid request data')
91
  return jsonify({'error': 'Invalid request data'}), 400
92
 
93
  #return response
 
11
  app=Flask(__name__)
12
 
13
  # Configure logging
14
+ #logging.basicConfig(filename='app.log', level=logging.INFO)
15
  """
16
  Functions for request/response validation
17
  """
 
72
  "https://92d997736474439dae5ccfaedc2ad990.us-central1.gcp.cloud.es.io:443",
73
  api_key="Ym16RzI0b0JIcXpRTU9NQUNUNE46YnBmaUtCWHdTNXlnN1dZR2w4Rllqdw=="
74
  )
75
+ #app.logger.info(msg='es instance created')
76
  """
77
  Question asking endpoint
78
 
 
87
 
88
  # Validate request data
89
  if not validate_request(question_data):
90
+ #app.logger.error(msg='Invalid request data')
91
  return jsonify({'error': 'Invalid request data'}), 400
92
 
93
  #return response