Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -358,12 +358,13 @@ def load_hubert():
|
|
358 |
suffix="",
|
359 |
)
|
360 |
hubert_model = models[0]
|
361 |
-
hubert_model = hubert_model.to(
|
362 |
if config.is_half:
|
363 |
hubert_model = hubert_model.half()
|
364 |
else:
|
365 |
hubert_model = hubert_model.float()
|
366 |
hubert_model.eval()
|
|
|
367 |
return hubert_model
|
368 |
|
369 |
hubert_model = load_hubert()
|
|
|
358 |
suffix="",
|
359 |
)
|
360 |
hubert_model = models[0]
|
361 |
+
hubert_model = hubert_model.to(config.device)
|
362 |
if config.is_half:
|
363 |
hubert_model = hubert_model.half()
|
364 |
else:
|
365 |
hubert_model = hubert_model.float()
|
366 |
hubert_model.eval()
|
367 |
+
print(hubert_model)
|
368 |
return hubert_model
|
369 |
|
370 |
hubert_model = load_hubert()
|