Update README.md
Browse files
README.md
CHANGED
@@ -48,4 +48,10 @@ pipe = pipeline(
|
|
48 |
result = pipe("audio.mp3")
|
49 |
print(result["text"])
|
50 |
```
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
result = pipe("audio.mp3")
|
49 |
print(result["text"])
|
50 |
```
|
51 |
+
|
52 |
+
# if you want to transcribe instead of translating just replace the :
|
53 |
+
|
54 |
+
```result = pipe("audio.mp3")```
|
55 |
+
# with
|
56 |
+
``` result = pipe("inference.mp3", generate_kwargs={"task": "transcribe"})```
|
57 |
+
|