Spaces:
Runtime error
Runtime error
Commit
·
37b0125
1
Parent(s):
738accc
Update app.py
Browse files
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 =
|
| 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 {
|