Spaces:
Sleeping
Sleeping
Commit
·
8cf1ebf
1
Parent(s):
925603d
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import pandas as pd
|
|
3 |
import gradio as gr
|
4 |
import psutil
|
5 |
|
6 |
-
model = WhisperModel(
|
7 |
|
8 |
def speech_to_text_translate(mic=None, file=None, lang=None):
|
9 |
if mic is not None:
|
|
|
3 |
import gradio as gr
|
4 |
import psutil
|
5 |
|
6 |
+
model = WhisperModel('large-v2', device="cpu", compute_type="int8")
|
7 |
|
8 |
def speech_to_text_translate(mic=None, file=None, lang=None):
|
9 |
if mic is not None:
|