shourya-goenka commited on
Commit
cdbca09
·
verified ·
1 Parent(s): 7422180

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,9 +33,9 @@ def process_audio(params):
33
 
34
  # text = response['results']['channels'][0]['alternatives'][0]['transcript']
35
  print(audio)
36
- response = requests.get(audio_url)
37
- audio = BytesIO(response.content)
38
- text = transcribe(audio)["text"]
39
 
40
  answer_dict = {}
41
  answer_dict.update({'audioURL':audio, 'solutions':text, "qcUserId": None, "normalfileID": file_id})
 
33
 
34
  # text = response['results']['channels'][0]['alternatives'][0]['transcript']
35
  print(audio)
36
+ response = requests.get(audio)
37
+ audio2 = BytesIO(response.content)
38
+ text = transcribe(audio2)["text"]
39
 
40
  answer_dict = {}
41
  answer_dict.update({'audioURL':audio, 'solutions':text, "qcUserId": None, "normalfileID": file_id})