Spaces:
Runtime error
Runtime error
j10sanders
commited on
Commit
·
738accc
1
Parent(s):
8dd7e9d
Update app.py
Browse files
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 |
-
|
32 |
-
|
33 |
-
|
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():
|