fixing access of results
This commit is contained in:
Binary file not shown.
+2
-2
@@ -74,8 +74,8 @@ if __name__ == '__main__':
|
|||||||
"POST", API_URL, files={"file": open(savedFileName, "rb")}
|
"POST", API_URL, files={"file": open(savedFileName, "rb")}
|
||||||
)
|
)
|
||||||
print(response.json())
|
print(response.json())
|
||||||
results = response.json().get("results")
|
results = response.json()["results"]
|
||||||
command = results[0].transcript
|
command = results[0]["transcript"]
|
||||||
process(command)
|
process(command)
|
||||||
else:
|
else:
|
||||||
if not audioInstance.isRecording():
|
if not audioInstance.isRecording():
|
||||||
|
|||||||
Reference in New Issue
Block a user