Skip to content

init audio_file variable#1

Open
jcaiqueoliveira wants to merge 1 commit intoguarilha:mainfrom
jcaiqueoliveira:main
Open

init audio_file variable#1
jcaiqueoliveira wants to merge 1 commit intoguarilha:mainfrom
jcaiqueoliveira:main

Conversation

@jcaiqueoliveira
Copy link
Copy Markdown

After

curl -X POST -H "Content-type: application/json" -d "{\"question\" : \"I have a flask api that needs to validate the schema of a POST body, how do I do that?\"}" http://127.0.0.1:5000/ask

Received the following error
UnboundLocalError: local variable 'audio_file' referenced before assignment

Setting audio_file = None fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant