Spaces:
Runtime error
Runtime error
j10sanders
commited on
Commit
·
8dd7e9d
1
Parent(s):
6c631ae
trying to run this without flask
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ CORS(app)
|
|
21 |
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
|
22 |
|
23 |
|
24 |
-
@app.route('/generate', methods=['GET'])
|
25 |
-
@cache.cached(timeout=1440) # Cache for 24 hours
|
26 |
def generate():
|
27 |
user_input = request.args.get('input', '', type=str)
|
28 |
if not user_input:
|
@@ -33,7 +33,7 @@ def generate():
|
|
33 |
}, HTTPStatus.OK
|
34 |
|
35 |
|
36 |
-
@app.route('/status', methods=['GET'])
|
37 |
def status():
|
38 |
return {'status': 'OK'}
|
39 |
|
|
|
21 |
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
|
22 |
|
23 |
|
24 |
+
# @app.route('/generate', methods=['GET'])
|
25 |
+
# @cache.cached(timeout=1440) # Cache for 24 hours
|
26 |
def generate():
|
27 |
user_input = request.args.get('input', '', type=str)
|
28 |
if not user_input:
|
|
|
33 |
}, HTTPStatus.OK
|
34 |
|
35 |
|
36 |
+
# @app.route('/status', methods=['GET'])
|
37 |
def status():
|
38 |
return {'status': 'OK'}
|
39 |
|