ariG23498 HF Staff commited on
Commit
70af0d2
·
verified ·
1 Parent(s): 7d3278f

Upload openai_whisper-large-v3_1.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. openai_whisper-large-v3_1.py +3 -2
openai_whisper-large-v3_1.py CHANGED
@@ -29,7 +29,8 @@ except Exception as e:
29
 
30
  with open('openai_whisper-large-v3_1.txt', 'a', encoding='utf-8') as f:
31
  import traceback
32
- f.write('```CODE:
 
33
  # Load model directly
34
  from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
35
 
@@ -37,7 +38,7 @@ processor = AutoProcessor.from_pretrained("openai/whisper-large-v3")
37
  model = AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-large-v3")
38
  ```
39
  ERROR:
40
- ')
41
  traceback.print_exc(file=f)
42
 
43
  finally:
 
29
 
30
  with open('openai_whisper-large-v3_1.txt', 'a', encoding='utf-8') as f:
31
  import traceback
32
+ f.write('''
33
+ ```CODE:
34
  # Load model directly
35
  from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
36
 
 
38
  model = AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-large-v3")
39
  ```
40
  ERROR:
41
+ ''')
42
  traceback.print_exc(file=f)
43
 
44
  finally: