Sandeep03edu commited on
Commit
12712c6
1 Parent(s): 7880eaa

Updated app.py for error message

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,7 +45,8 @@ except Exception as e:
45
  return res
46
  except Exception as e:
47
  print("Received process error: ", e)
48
- return "An Error occurred!!"
 
49
 
50
  @app.route('/query', methods=['POST'])
51
  def process_request():
 
45
  return res
46
  except Exception as e:
47
  print("Received process error: ", e)
48
+ # return "An Error occurred!!"
49
+ return e
50
 
51
  @app.route('/query', methods=['POST'])
52
  def process_request():