ariG23498 HF Staff commited on
Commit
a3c18a9
·
verified ·
1 Parent(s): 0e81678

Upload zai-org_GLM-ASR-Nano-2512_0.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. zai-org_GLM-ASR-Nano-2512_0.py +2 -2
zai-org_GLM-ASR-Nano-2512_0.py CHANGED
@@ -23,7 +23,7 @@ try:
23
  # Use a pipeline as a high-level helper
24
  from transformers import pipeline
25
 
26
- pipe = pipeline("automatic-speech-recognition", model="zai-org/GLM-ASR-Nano-2512", trust_remote_code=True)
27
  with open('zai-org_GLM-ASR-Nano-2512_0.txt', 'w', encoding='utf-8') as f:
28
  f.write('Everything was good in zai-org_GLM-ASR-Nano-2512_0.txt')
29
  except Exception as e:
@@ -41,7 +41,7 @@ except Exception as e:
41
  # Use a pipeline as a high-level helper
42
  from transformers import pipeline
43
 
44
- pipe = pipeline("automatic-speech-recognition", model="zai-org/GLM-ASR-Nano-2512", trust_remote_code=True)
45
  ```
46
 
47
  ERROR:
 
23
  # Use a pipeline as a high-level helper
24
  from transformers import pipeline
25
 
26
+ pipe = pipeline("automatic-speech-recognition", model="zai-org/GLM-ASR-Nano-2512")
27
  with open('zai-org_GLM-ASR-Nano-2512_0.txt', 'w', encoding='utf-8') as f:
28
  f.write('Everything was good in zai-org_GLM-ASR-Nano-2512_0.txt')
29
  except Exception as e:
 
41
  # Use a pipeline as a high-level helper
42
  from transformers import pipeline
43
 
44
+ pipe = pipeline("automatic-speech-recognition", model="zai-org/GLM-ASR-Nano-2512")
45
  ```
46
 
47
  ERROR: