Update main.py
Browse files
main.py
CHANGED
|
@@ -39,7 +39,7 @@ def hello():
|
|
| 39 |
return "Semabox, listens to you!"
|
| 40 |
|
| 41 |
@app.route('/whisper', methods=['POST'])
|
| 42 |
-
def
|
| 43 |
if 'audio' not in request.files:
|
| 44 |
# If no audio file is submitted, return a 400 (Bad Request) error.
|
| 45 |
abort(400, description="No audio file provided")
|
|
|
|
| 39 |
return "Semabox, listens to you!"
|
| 40 |
|
| 41 |
@app.route('/whisper', methods=['POST'])
|
| 42 |
+
def sema():
|
| 43 |
if 'audio' not in request.files:
|
| 44 |
# If no audio file is submitted, return a 400 (Bad Request) error.
|
| 45 |
abort(400, description="No audio file provided")
|