Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ def time_stamped_text(transcript_result):
|
|
48 |
|
49 |
|
50 |
def transcript(file_dir, model_type, time_stamp):
|
51 |
-
|
52 |
-
model_dir = "E:\\Whisper\\" + model_type
|
53 |
model = whisper.load_model(model_dir)
|
54 |
result = model.transcribe(file_dir, language='English', task='transcribe')
|
55 |
|
|
|
48 |
|
49 |
|
50 |
def transcript(file_dir, model_type, time_stamp):
|
51 |
+
model_dir = os.path.join('models', model_type)
|
52 |
+
# model_dir = "E:\\Whisper\\" + model_type
|
53 |
model = whisper.load_model(model_dir)
|
54 |
result = model.transcribe(file_dir, language='English', task='transcribe')
|
55 |
|