压榨性能
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from faster_whisper import WhisperModel
|
| 3 |
|
| 4 |
-
model = WhisperModel("
|
| 5 |
|
| 6 |
|
| 7 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from faster_whisper import WhisperModel
|
| 3 |
|
| 4 |
+
model = WhisperModel("small",compute_type='auto',num_workers=2, cpu_threads=8)
|
| 5 |
|
| 6 |
|
| 7 |
|