Spaces:
Runtime error
Runtime error
codenamewei
commited on
Commit
•
3d46958
1
Parent(s):
dc46d29
fix use_auth_token error
Browse files
app.py
CHANGED
@@ -17,11 +17,10 @@ audiosavepath = os.getcwd()
|
|
17 |
pretrained_model = "codenamewei/speech-to-text"
|
18 |
|
19 |
processor = Wav2Vec2Processor.from_pretrained(
|
20 |
-
pretrained_model
|
21 |
|
22 |
model = AutoModelForCTC.from_pretrained(
|
23 |
-
pretrained_model
|
24 |
-
use_auth_token=True)
|
25 |
|
26 |
modelloader = ModelLoader(model, processor)
|
27 |
|
|
|
17 |
pretrained_model = "codenamewei/speech-to-text"
|
18 |
|
19 |
processor = Wav2Vec2Processor.from_pretrained(
|
20 |
+
pretrained_model)
|
21 |
|
22 |
model = AutoModelForCTC.from_pretrained(
|
23 |
+
pretrained_model)
|
|
|
24 |
|
25 |
modelloader = ModelLoader(model, processor)
|
26 |
|