carlosdanielhernandezmena commited on
Commit
c898c14
·
verified ·
1 Parent(s): f9c00fb

Adding some updates to the code

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -247,7 +247,19 @@ pip install datasets transformers
247
  ### For Inference
248
  In order to transcribe audio in Catalan using this model, you can follow this example:
249
 
 
 
 
 
 
 
 
 
250
  ```python
 
 
 
 
251
  import torch
252
  from transformers import WhisperForConditionalGeneration, WhisperProcessor
253
 
 
247
  ### For Inference
248
  In order to transcribe audio in Catalan using this model, you can follow this example:
249
 
250
+ ```bash
251
+ #Install Prerequisites
252
+ pip install torch
253
+ pip install datasets
254
+ pip install 'transformers[torch]'
255
+ pip install evaluate
256
+ ```
257
+
258
  ```python
259
+ #This code works with GPU
260
+
261
+ #Notice that: load_metric is no longer part of datasets (Note from November 2024)
262
+
263
  import torch
264
  from transformers import WhisperForConditionalGeneration, WhisperProcessor
265