Spaces:
Configuration error
Configuration error
Fedir Zadniprovskyi
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -38,9 +38,9 @@ export OPENAI_API_KEY="cant-be-empty"
|
|
38 |
export OPENAI_BASE_URL=http://localhost:8000/v1/
|
39 |
```
|
40 |
```bash
|
41 |
-
openai api audio.transcriptions.create -m distil-
|
42 |
|
43 |
-
openai api audio.translations.create -m distil-
|
44 |
```
|
45 |
### OpenAI API Python SDK
|
46 |
```python
|
@@ -50,7 +50,7 @@ client = OpenAI(api_key="cant-be-empty", base_url="http://localhost:8000/v1/")
|
|
50 |
|
51 |
audio_file = open("audio.wav", "rb")
|
52 |
transcript = client.audio.transcriptions.create(
|
53 |
-
model="distil-
|
54 |
)
|
55 |
print(transcript.text)
|
56 |
```
|
|
|
38 |
export OPENAI_BASE_URL=http://localhost:8000/v1/
|
39 |
```
|
40 |
```bash
|
41 |
+
openai api audio.transcriptions.create -m distil-large-v3 -f audio.wav --response-format text
|
42 |
|
43 |
+
openai api audio.translations.create -m distil-large-v3 -f audio.wav --response-format verbose_json
|
44 |
```
|
45 |
### OpenAI API Python SDK
|
46 |
```python
|
|
|
50 |
|
51 |
audio_file = open("audio.wav", "rb")
|
52 |
transcript = client.audio.transcriptions.create(
|
53 |
+
model="distil-large-v3", file=audio_file
|
54 |
)
|
55 |
print(transcript.text)
|
56 |
```
|