Spaces:
Running
Running
Alexander Nikolaev
commited on
Commit
•
7b1ddd7
1
Parent(s):
81893e0
Update webApp.py
Browse files
webApp.py
CHANGED
@@ -34,9 +34,13 @@ def getNext():
|
|
34 |
|
35 |
@app.route(rootPath+'/GetAccuracyFromRecordedAudio', methods=['POST'])
|
36 |
def GetAccuracyFromRecordedAudio():
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
40 |
return lambda_correct_output
|
41 |
|
42 |
|
|
|
34 |
|
35 |
@app.route(rootPath+'/GetAccuracyFromRecordedAudio', methods=['POST'])
|
36 |
def GetAccuracyFromRecordedAudio():
|
37 |
+
try:
|
38 |
+
event = {'body': json.dumps(request.get_json(force=True))}
|
39 |
+
lambda_correct_output = lambdaSpeechToScore.lambda_handler(event, [])
|
40 |
+
except Exception as e:
|
41 |
+
import traceback
|
42 |
+
print(e)
|
43 |
+
print(traceback.format_exc())
|
44 |
return lambda_correct_output
|
45 |
|
46 |
|