Tafar commited on
Commit
411f5ae
1 Parent(s): dc9034e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -0
README.md ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: afl-3.0
3
+ datasets:
4
+ - fka/awesome-chatgpt-prompts
5
+ language:
6
+ - en
7
+ - fr
8
+ - es
9
+ metrics:
10
+ - accuracy
11
+ - bleu
12
+ - character
13
+ pipeline_tag: conversational
14
+ tags:
15
+ - climate
16
+ ---
17
+ import requests
18
+
19
+ API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3"
20
+ headers = {"Authorization": "Bearer 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"}
21
+
22
+ def query(filename):
23
+ with open(filename, "rb") as f:
24
+ data = f.read()
25
+ response = requests.post(API_URL, headers=headers, data=data)
26
+ return response.json()
27
+
28
+ output = query("sample1.flac")