j10sanders commited on
Commit
738accc
·
1 Parent(s): 8dd7e9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -27,11 +27,10 @@ def generate():
27
  user_input = request.args.get('input', '', type=str)
28
  if not user_input:
29
  return 'Missing input', HTTPStatus.BAD_REQUEST
30
-
31
- return {
32
- 'result': codegen.generate(user_input)
33
- }, HTTPStatus.OK
34
-
35
 
36
  # @app.route('/status', methods=['GET'])
37
  def status():
 
27
  user_input = request.args.get('input', '', type=str)
28
  if not user_input:
29
  return 'Missing input', HTTPStatus.BAD_REQUEST
30
+ # return {
31
+ # 'result': codegen.generate(user_input)
32
+ # }, HTTPStatus.OK
33
+ return codegen.generate(user_input)
 
34
 
35
  # @app.route('/status', methods=['GET'])
36
  def status():