worqhat 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
worqhat/__init__.py ADDED
@@ -0,0 +1,10 @@
1
+ from .ai_models.ai_search import *
2
+ from .ai_models.content_mod import *
3
+ from .ai_models.image_analysis import *
4
+ from .ai_models.image_gen import *
5
+ from .ai_models.model_train import *
6
+ from .ai_models.text_extract import *
7
+ from .ai_models.text_gen import *
8
+ from .database_management.collection import *
9
+ from .database_management.Edit import *
10
+ from .database_management.Read import *
@@ -0,0 +1,9 @@
1
+ __all__ = ['ai_search', 'content_mod', 'image_analysis', 'image_gen', 'model_train', 'text_extract', 'text_gen']
2
+
3
+ from .ai_search import *
4
+ from .content_mod import *
5
+ from .image_analysis import *
6
+ from .image_gen import *
7
+ from .model_train import *
8
+ from .text_extract import *
9
+ from .text_gen import *
@@ -0,0 +1,41 @@
1
+ import os
2
+ import requests
3
+
4
+ def search_ai_v2(question="", training_data="", api_key=None):
5
+ if question == "":
6
+ return "Question is incomplete. Please give a question and try again."
7
+ if not api_key:
8
+ api_key = os.getenv("API_KEY")
9
+ if not api_key:
10
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
11
+ url = "https://api.worqhat.com/api/ai/search/v2"
12
+ headers = {
13
+ "Authorization": "Bearer " + api_key,
14
+ "Content-Type": "application/json"
15
+ }
16
+ payload = {
17
+ "question": question,
18
+ "training_data": training_data
19
+ }
20
+ response = requests.request("POST", url, json=payload, headers=headers)
21
+ return response.text
22
+
23
+ def search_ai_v3(question="", training_data="", search_count=10, api_key=None):
24
+ if question == "":
25
+ return "Question is incomplete. Please give a question and try again"
26
+ if not api_key:
27
+ api_key = os.getenv("API_KEY")
28
+ if not api_key:
29
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
30
+ url = "https://api.worqhat.com/api/ai/search/v3"
31
+ headers = {
32
+ "Authorization": "Bearer " + api_key,
33
+ "Content-Type": "application/json"
34
+ }
35
+ payload = {
36
+ "question": question,
37
+ "training_data": training_data,
38
+ "search_count": search_count
39
+ }
40
+ response = requests.request("POST", url, json=payload, headers=headers)
41
+ return response.text
@@ -0,0 +1,44 @@
1
+ import requests
2
+ import os
3
+
4
+
5
+ def content_moderation(text_content="",api_key=None):
6
+ if text_content == "":
7
+ return "Text content is incomplete. Please give some text and try again. "
8
+ if not api_key:
9
+ api_key = os.getenv("API_KEY")
10
+ if not api_key:
11
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
12
+ url = "https://api.worqhat.com/api/ai/moderation"
13
+ headers = {
14
+ "Authorization": "Bearer " + api_key,
15
+ "Content-Type": "application/json"
16
+ }
17
+ payload = {
18
+ "text_content": text_content
19
+ }
20
+ response = requests.post(url, json=payload, headers=headers)
21
+ return response.text
22
+
23
+ def image_moderation(image=None, api_key=None):
24
+ if not image or len(image) == 0:
25
+ return "No images found. Please try again "
26
+ if not api_key:
27
+ api_key = os.getenv("API_KEY")
28
+ if not api_key:
29
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
30
+ url = "https://api.worqhat.com/api/ai/images/v2/image-moderation"
31
+ headers = {
32
+ "Authorization": f"Bearer {api_key}"
33
+ }
34
+
35
+ if image.startswith('http://') or image.startswith('https://'):
36
+ response = requests.get(image)
37
+ files = [('image', ('file', response.content, 'application/octet-stream'))]
38
+ else:
39
+ with open(image, 'rb') as f:
40
+ files = [('image', ('file', f, 'application/octet-stream'))]
41
+ response = requests.post(url, files=files, headers=headers)
42
+ return response.text
43
+
44
+
@@ -0,0 +1,94 @@
1
+ import requests
2
+ import os
3
+ import json
4
+
5
+ def analyze_images(images, question="", training_data="", output_type="text", stream_data=False, api_key=None):
6
+ if not images or len(images) == 0:
7
+ return "No images found. Please try again "
8
+
9
+ api_key = api_key or os.getenv("API_KEY")
10
+ if not api_key:
11
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
12
+ url = "https://api.worqhat.com/api/ai/images/v2/image-analysis"
13
+ headers = {
14
+ 'Accept': 'application/json',
15
+ 'Authorization': f'Bearer {api_key}'
16
+ }
17
+ payload = {
18
+ 'output_type': output_type,
19
+ 'stream_data': str(stream_data).lower(),
20
+ 'question': question,
21
+ 'training' : training_data
22
+ }
23
+ files = []
24
+ for image in images:
25
+ if image.startswith('http://') or image.startswith('https://'):
26
+ response = requests.get(image)
27
+ files.append(('images', (os.path.basename(image), response.content, 'image/jpeg')))
28
+ else:
29
+ with open(image, 'rb') as f:
30
+ file_content = f.read()
31
+ files.append(('images', (os.path.basename(image), file_content, 'image/jpeg')))
32
+ response = requests.post(url, headers=headers, data=payload, files=files)
33
+ if stream_data:
34
+ for line in response.iter_lines():
35
+ if line:
36
+ if line.startswith(b'data:'):
37
+ json_content = line[len(b'data:'):].decode('utf-8').strip()
38
+ print(json_content)
39
+ else:
40
+ json_response = response.text
41
+ try:
42
+ json_data = json.loads(json_response)
43
+ print(json.dumps(json_data, indent=4))
44
+ except json.JSONDecodeError:
45
+ print(json_response)
46
+
47
+ def detect_faces(image, api_key=None):
48
+ if not image or len(image) == 0:
49
+ return "No images found. Please try again "
50
+ api_key = api_key or os.getenv("API_KEY")
51
+ if not api_key:
52
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
53
+ url = "https://api.worqhat.com/api/ai/images/v2/face-detection"
54
+ headers = {
55
+ 'Accept': 'application/json',
56
+ 'Authorization': f'Bearer {api_key}'
57
+ }
58
+
59
+ if image.startswith('http://') or image.startswith('https://'):
60
+ response = requests.get(image)
61
+ file=[('image', (os.path.basename(image), response.content, 'image/jpeg'))]
62
+ else:
63
+ with open(image, 'rb') as f:
64
+ file=[('image', (os.path.basename(image), f, 'image/jpeg'))]
65
+ response = requests.post(url, headers=headers, files=file)
66
+ return response.text
67
+
68
+ def compare_faces(source_image, target_image, api_key=None):
69
+ if not source_image or not target_image:
70
+ return "No images found. Please try again "
71
+ api_key = api_key or os.getenv("API_KEY")
72
+ if not api_key:
73
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
74
+ url = "https://api.worqhat.com/api/ai/images/v2/facial-comparison"
75
+ headers = {
76
+ 'Accept': 'application/json',
77
+ 'Authorization': f'Bearer {api_key}'
78
+ }
79
+
80
+ if source_image.startswith('http://') or source_image.startswith('https://'):
81
+ response = requests.get(source_image)
82
+ source_file=[('source_image', (os.path.basename(source_image), response.content, 'image/jpeg'))]
83
+ else:
84
+ with open(source_image, 'rb') as f:
85
+ source_file=[('source_image', (os.path.basename(source_image), f, 'image/jpeg'))]
86
+ if target_image.startswith('http://') or target_image.startswith('https://'):
87
+ response = requests.get(target_image)
88
+ target_file=[('target_image', (os.path.basename(target_image), response.content, 'image/jpeg'))]
89
+ else:
90
+ with open(target_image, 'rb') as f:
91
+ target_file=[('target_image', (os.path.basename(target_image), f, 'image/jpeg'))]
92
+ files = source_file + target_file
93
+ response = requests.post(url, headers=headers, files=files)
94
+ return response.text
@@ -0,0 +1,281 @@
1
+ import requests
2
+ import os
3
+
4
+
5
+ def generate_image_v2(prompt="", image_style="realistic", output_type="url", orientation="square", api_key=None):
6
+ if not api_key:
7
+ api_key = os.getenv("API_KEY")
8
+ if not api_key:
9
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
10
+ url = "https://api.worqhat.com/api/ai/images/generate/v2"
11
+ headers = {
12
+ "Authorization": "Bearer " + api_key,
13
+ "Content-Type": "application/json"
14
+ }
15
+ payload = {
16
+ "prompt": prompt,
17
+ "image_style": image_style,
18
+ "output_type": output_type,
19
+ "orientation": orientation
20
+ }
21
+ response = requests.post(url, json=payload, headers=headers)
22
+ return response.text
23
+
24
+ def generate_image_v3(prompt="", image_style="realistic", output_type="url", orientation="square", api_key=None):
25
+ if not api_key:
26
+ api_key = os.getenv("API_KEY")
27
+
28
+ if not api_key:
29
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
30
+ url = "https://api.worqhat.com/api/ai/images/generate/v3"
31
+ headers = {
32
+ "Authorization": "Bearer " + api_key,
33
+ "Content-Type": "application/json"
34
+ }
35
+ payload = {
36
+ "prompt": prompt,
37
+ "image_style": image_style,
38
+ "output_type": output_type,
39
+ "orientation": orientation
40
+ }
41
+ response = requests.post(url, json=payload, headers=headers)
42
+ return response.text
43
+
44
+ def modify_image_v2(image=None,modification=None, output_type="URL", similarity="30", api_key=None):
45
+ if not modification:
46
+ return "Modification description is missing"
47
+ if not image or len(image) == 0:
48
+ return "Image is missing"
49
+ if not api_key:
50
+ api_key = os.getenv("API_KEY")
51
+ if not api_key:
52
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
53
+ url = "https://api.worqhat.com/api/ai/images/modify/v2"
54
+ headers = {
55
+ "Authorization": f"Bearer {api_key}"
56
+ }
57
+ payload = {
58
+ "modification": modification,
59
+ "output_type": output_type,
60
+ "similarity": similarity
61
+ }
62
+ if image.startswith('http://') or image.startswith('https://'):
63
+ response = requests.get(image)
64
+ files = [('existing_image', ('file', response.content, 'application/octet-stream'))]
65
+ else:
66
+ with open(image, 'rb') as f:
67
+ files = [('existing_image', ('file', f, 'application/octet-stream'))]
68
+ response = requests.post(url, headers=headers, data=payload, files=files)
69
+ return response.text
70
+
71
+
72
+ def modify_image_v3(image=None,modification=None, output_type="URL", similarity="30", api_key=None):
73
+ if not modification:
74
+ return "Modification description is missing"
75
+ if not image or len(image) == 0:
76
+ return "Existing images are missing"
77
+ if not api_key:
78
+ api_key = os.getenv("API_KEY")
79
+
80
+ # If api_key is still not available, return an error message
81
+ if not api_key:
82
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
83
+
84
+ url = "https://api.worqhat.com/api/ai/images/modify/v3"
85
+ headers = {
86
+ "Authorization": f"Bearer {api_key}"
87
+ }
88
+
89
+
90
+
91
+ # Prepare payload
92
+ payload = {
93
+ "modification": modification,
94
+ "output_type": output_type,
95
+ "similarity": similarity
96
+ }
97
+
98
+ # Prepare files data in the required format
99
+ if image.startswith('http://') or image.startswith('https://'):
100
+ # If image is a URL, download the image content
101
+ response = requests.get(image)
102
+ files = [('existing_image', ('file', response.content, 'application/octet-stream'))]
103
+ else:
104
+ # If image is a local file path, read the file content
105
+ with open(image, 'rb') as f:
106
+ files = [('existing_image', ('file', f, 'application/octet-stream'))]
107
+
108
+ # Make the API call
109
+ response = requests.post(url, headers=headers, data=payload, files=files)
110
+ return response.text
111
+
112
+ def remove_text_from_image(image=None,output_type="URL", api_key=None):
113
+
114
+ if not image:
115
+ return "Existing image is missing"
116
+ if not api_key:
117
+ api_key = os.getenv("API_KEY")
118
+ if not api_key:
119
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
120
+ url = "https://api.worqhat.com/api/ai/images/modify/v3/remove-text"
121
+ headers = {
122
+ "Authorization": f"Bearer {api_key}"
123
+ }
124
+
125
+ payload = {'output_type': output_type}
126
+
127
+ if image.startswith('http://') or image.startswith('https://'):
128
+ response = requests.get(image)
129
+ files = [('existing_image', ('file', response.content, 'image/png'))]
130
+ else:
131
+ with open(image, 'rb') as f:
132
+ files = [('existing_image', ('file', f, 'image/png'))]
133
+
134
+ response = requests.post(url, headers=headers, data=payload, files=files)
135
+ return response.text
136
+
137
+ def remove_background_from_image(existing_image=None,output_type="URL", api_key=None):
138
+ if not existing_image:
139
+ return "Existing image is missing"
140
+ if not api_key:
141
+ api_key = os.getenv("API_KEY")
142
+ if not api_key:
143
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
144
+
145
+ url = "https://api.worqhat.com/api/ai/images/modify/v3/remove-background"
146
+ headers = {
147
+ "Authorization": f"Bearer {api_key}"
148
+ }
149
+ payload = {'output_type': output_type}
150
+ if existing_image.startswith('http://') or existing_image.startswith('https://'):
151
+ response = requests.get(existing_image)
152
+ files = [('existing_image', ('file', response.content, 'image/png'))]
153
+ else:
154
+ with open(existing_image, 'rb') as f:
155
+ files = [('existing_image', ('file', f, 'image/png'))]
156
+ response = requests.post(url, headers=headers, data=payload, files=files)
157
+ return response.text
158
+
159
+ def replace_background(image=None,modification=None, output_type="URL", api_key=None):
160
+ if not modification:
161
+ return "Modification description is missing"
162
+ if not image:
163
+ return "Existing image is missing"
164
+ if not api_key:
165
+ api_key = os.getenv("API_KEY")
166
+ if not api_key:
167
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
168
+
169
+ url = "https://api.worqhat.com/api/ai/images/modify/v3/replace-background"
170
+ headers = {
171
+ "Authorization": f"Bearer {api_key}"
172
+ }
173
+
174
+ payload = {
175
+ "modification": modification,
176
+ "output_type": output_type
177
+ }
178
+
179
+ if image.startswith('http://') or image.startswith('https://'):
180
+ response = requests.get(image)
181
+ files = [('existing_image', ('file', response.content, 'image/png'))]
182
+ else:
183
+ with open(image, 'rb') as f:
184
+ files = [('existing_image', ('file', f, 'image/png'))]
185
+ response = requests.post(url, headers=headers, data=payload, files=files)
186
+ return response.text
187
+
188
+ def search_replace_image(image=None,modification=None, output_type="URL", search_object=None, api_key=None):
189
+ if not modification:
190
+ return "Modification description is missing"
191
+ if not search_object:
192
+ return "Search object description is missing"
193
+ if not image:
194
+ return "Existing image is missing"
195
+ if not api_key:
196
+ api_key = os.getenv("API_KEY")
197
+ if not api_key:
198
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
199
+ url = "https://api.worqhat.com/api/ai/images/modify/v3/search-replace-image"
200
+ headers = {
201
+ "Authorization": f"Bearer {api_key}"
202
+ }
203
+ payload = {
204
+ "modification": modification,
205
+ "output_type": output_type,
206
+ "search_object": search_object
207
+ }
208
+
209
+ if image.startswith('http://') or image.startswith('https://'):
210
+
211
+ response = requests.get(image)
212
+ files = [('existing_image', ('file', response.content, 'image/png'))]
213
+ else:
214
+
215
+ with open(image, 'rb') as f:
216
+ files = [('existing_image', ('file', f, 'image/png'))]
217
+ response = requests.post(url, headers=headers, data=payload, files=files)
218
+ return response.text
219
+
220
+
221
+ def extend_image(image=None,output_type="URL", left_extend="100", right_extend="100", top_extend="50", bottom_extend="50", description="", api_key=None):
222
+ if not image:
223
+ return "image is missing"
224
+ if not api_key:
225
+ api_key = os.getenv("API_KEY")
226
+ if not api_key:
227
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
228
+
229
+ url = "https://api.worqhat.com/api/ai/images/modify/v3/extend-image"
230
+ headers = {
231
+ "Authorization": f"Bearer {api_key}"
232
+ }
233
+
234
+ payload = {
235
+ "output_type": output_type,
236
+ "leftExtend": left_extend,
237
+ "rightExtend": right_extend,
238
+ "topExtend": top_extend,
239
+ "bottomExtend": bottom_extend,
240
+ "description": description
241
+ }
242
+
243
+ if image.startswith('http://') or image.startswith('https://'):
244
+
245
+ response = requests.get(image)
246
+ files = [('existing_image', ('file', response.content, 'image/png'))]
247
+ else:
248
+ with open(image, 'rb') as f:
249
+ files = [('existing_image', ('file', f, 'image/png'))]
250
+
251
+ response = requests.post(url, headers=headers, data=payload, files=files)
252
+ return response.text
253
+
254
+ def upscale_image(existing_image=None,scale="4", output_type="URL",api_key=None):
255
+ if not existing_image:
256
+ return "Existing image is missing"
257
+ if not api_key:
258
+ api_key = os.getenv("API_KEY")
259
+ if not api_key:
260
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
261
+
262
+ url = "https://api.worqhat.com/api/ai/images/upscale/v3"
263
+ headers = {
264
+ "Authorization": f"Bearer {api_key}"
265
+ }
266
+ payload = {
267
+ "scale": scale,
268
+ "output_type": output_type
269
+ }
270
+
271
+ if existing_image.startswith('http://') or existing_image.startswith('https://'):
272
+
273
+ response = requests.get(existing_image)
274
+ files = [('existing_image', ('file', response.content, 'image/png'))]
275
+ else:
276
+ with open(existing_image, 'rb') as f:
277
+ files = [('existing_image', ('file', f, 'image/png'))]
278
+
279
+ response = requests.post(url, headers=headers, data=payload, files=files)
280
+
281
+ return response.text
@@ -0,0 +1,45 @@
1
+ import requests
2
+ import os
3
+
4
+
5
+ def list_datasets(api_key=None):
6
+ if not api_key:
7
+ api_key = os.getenv("API_KEY")
8
+ if not api_key:
9
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
10
+ url = "https://api.worqhat.com/api/list-datasets"
11
+ headers = {"Authorization": "Bearer " + api_key}
12
+ response = requests.post(url, headers=headers)
13
+ return response.text
14
+
15
+ def delete_dataset(dataset_id="", api_key=None):
16
+ if dataset_id=="":
17
+ raise ValueError("No Dataset Id provided")
18
+ if not api_key:
19
+ api_key = os.getenv("API_KEY")
20
+ if not api_key:
21
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
22
+ url = f"https://api.worqhat.com/api/delete-datasets/{dataset_id}"
23
+ headers = {"Authorization": "Bearer " + api_key}
24
+ response = requests.post(url, headers=headers)
25
+ return response.text
26
+
27
+
28
+ def train_dataset(dataset_id="", dataset_name="", dataset_type="", json_data="", training_file=None, api_key=None):
29
+ if dataset_id=="":
30
+ raise ValueError("No Dataset Id provided")
31
+ if not api_key:
32
+ api_key = os.getenv("API_KEY")
33
+ if not api_key:
34
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
35
+ url = "https://api.worqhat.com/api/ai/datasets/train-datasets"
36
+ headers = {"Authorization": "Bearer " + api_key}
37
+ payload = {
38
+ "datasetId": dataset_id,
39
+ "dataset_name": dataset_name,
40
+ "dataset_type": dataset_type,
41
+ "json_data": (None, json_data),
42
+ "training_file": (training_file, open(training_file, 'rb'))
43
+ }
44
+ response = requests.post(url, files=payload, headers=headers)
45
+ return response.text
@@ -0,0 +1,83 @@
1
+ import requests
2
+ import os
3
+
4
+
5
+ def extract_pdf_text(pdf_file=None, api_key=None):
6
+ if not pdf_file:
7
+ return "PDF file is missing"
8
+ if not api_key:
9
+ api_key = os.getenv("API_KEY")
10
+ print(api_key)
11
+ if not api_key:
12
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
13
+ url = "https://api.worqhat.com/api/ai/v2/pdf-extract"
14
+ headers = {
15
+ "Authorization": f"Bearer {api_key}"
16
+ }
17
+ files = [('file', (os.path.basename(pdf_file), open(pdf_file, 'rb'), 'application/pdf'))]
18
+ response = requests.post(url, files=files, headers=headers)
19
+ return response.text
20
+
21
+ def web_extract(url_search="", headline=True, inline_code=True, code_blocks=True, references=True, tables=True, api_key=None):
22
+ if url_search=="":
23
+ raise ValueError("No URL provided")
24
+ if not api_key:
25
+ api_key = os.getenv("API_KEY")
26
+ if not api_key:
27
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
28
+ url = "https://api.worqhat.com/api/ai/v2/web-extract"
29
+ headers = {
30
+ "Authorization": "Bearer " + api_key,
31
+ "Content-Type": "application/json"
32
+ }
33
+ payload = {
34
+ "url_path": url_search,
35
+ "headline": headline,
36
+ "inline_code": inline_code,
37
+ "code_blocks": code_blocks,
38
+ "references": references,
39
+ "tables": tables
40
+ }
41
+ response = requests.post(url, json=payload, headers=headers)
42
+ return response.text
43
+
44
+
45
+ def detect_image_text(image=None, output_type="text", api_key=None):
46
+
47
+ if not image or len(image) == 0:
48
+ raise ValueError("Images are missing")
49
+ if not api_key:
50
+ api_key = os.getenv("API_KEY")
51
+ if not api_key:
52
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
53
+ url = "https://api.worqhat.com/api/ai/images/v2/image-text-detection"
54
+ headers = {
55
+ "Authorization": f"Bearer {api_key}"
56
+ }
57
+ results = []
58
+ payload = {'output_type': output_type}
59
+ if image.startswith('http://') or image.startswith('https://'):
60
+ response = requests.get(image)
61
+ files = [('image', (os.path.basename(image), response.content, 'image/jpeg'))]
62
+ else:
63
+ with open(image, 'rb') as f:
64
+ files = [('image', (os.path.basename(image), f, 'image/jpeg'))]
65
+ response = requests.post(url, headers=headers, data=payload, files=files)
66
+ results.append(response.text)
67
+ return results
68
+
69
+
70
+ def convert_speech_to_text(audio_file=None, api_key=None):
71
+ if not audio_file:
72
+ raise ValueError("Audio file is missing")
73
+ if not api_key:
74
+ api_key = os.getenv("API_KEY")
75
+ if not api_key:
76
+ raise ValueError("API key is missing. Provide it as an argument or in the .env file.")
77
+ url = "https://api.worqhat.com/api/ai/speech-text"
78
+ headers = {
79
+ "Authorization": f"Bearer {api_key}"
80
+ }
81
+ files = [('audio', (os.path.basename(audio_file), open(audio_file, 'rb'), 'application/octet-stream'))]
82
+ response = requests.post(url, files=files, headers=headers)
83
+ return response.text