aichina commited on
Commit
97c6b92
1 Parent(s): 8078e71
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -31,12 +31,7 @@ def create(prompt,openai_key):
31
 
32
 
33
  def convert(res,openai_key):
34
- headers = {
35
- 'accept': 'application/json',
36
- 'x-gladia-key': '89b0adf5-fb2c-48ba-8a66-76b02827fd14',
37
- # requests won't add a boundary if this header is set when you pass files=
38
- # 'Content-Type': 'multipart/form-data',
39
- }
40
 
41
  data = res.json()
42
  prediction = data['prediction']
@@ -66,6 +61,12 @@ def get_audio(url):
66
  return audio_file
67
 
68
  def get_transcript(url,openai_key):
 
 
 
 
 
 
69
  audio_file = get_audio(url)
70
  # audio_file = 'tmp.mp4'
71
  files = {
 
31
 
32
 
33
  def convert(res,openai_key):
34
+
 
 
 
 
 
35
 
36
  data = res.json()
37
  prediction = data['prediction']
 
61
  return audio_file
62
 
63
  def get_transcript(url,openai_key):
64
+ headers = {
65
+ 'accept': 'application/json',
66
+ 'x-gladia-key': '89b0adf5-fb2c-48ba-8a66-76b02827fd14',
67
+ # requests won't add a boundary if this header is set when you pass files=
68
+ # 'Content-Type': 'multipart/form-data',
69
+ }
70
  audio_file = get_audio(url)
71
  # audio_file = 'tmp.mp4'
72
  files = {