aichina commited on
Commit
8078e71
1 Parent(s): ae41ebd
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -4,12 +4,6 @@ from pytube import YouTube
4
  import random
5
  import requests,json
6
 
7
- headers = {
8
- 'accept': 'application/json',
9
- 'x-gladia-key': '89b0adf5-fb2c-48ba-8a66-76b02827fd14',
10
- # requests won't add a boundary if this header is set when you pass files=
11
- # 'Content-Type': 'multipart/form-data',
12
- }
13
 
14
 
15
 
@@ -37,6 +31,13 @@ def create(prompt,openai_key):
37
 
38
 
39
  def convert(res,openai_key):
 
 
 
 
 
 
 
40
  data = res.json()
41
  prediction = data['prediction']
42
  content = []
 
4
  import random
5
  import requests,json
6
 
 
 
 
 
 
 
7
 
8
 
9
 
 
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']
43
  content = []