j10sanders commited on
Commit
37b0125
1 Parent(s): 738accc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,8 +23,8 @@ cache = Cache(app, config={'CACHE_TYPE': 'simple'})
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:
29
  return 'Missing input', HTTPStatus.BAD_REQUEST
30
  # return {
 
23
 
24
  # @app.route('/generate', methods=['GET'])
25
  # @cache.cached(timeout=1440) # Cache for 24 hours
26
+ def generate(user_input: str):
27
+ # user_input = nl
28
  if not user_input:
29
  return 'Missing input', HTTPStatus.BAD_REQUEST
30
  # return {