Spaces:
Runtime error
Runtime error
Commit
·
526decc
1
Parent(s):
b403268
Update app.py
Browse files
app.py
CHANGED
@@ -5,14 +5,6 @@ from logger import logging
|
|
5 |
import config
|
6 |
|
7 |
|
8 |
-
<<<<<<< HEAD
|
9 |
-
def get_text(audio_path):
|
10 |
-
if not audio_path:
|
11 |
-
return "No audio file chosen..."
|
12 |
-
model = whisper.load_model(name='base', download_root=config.MODEL_DIR)
|
13 |
-
results = model.transcribe(audio_path)
|
14 |
-
return results['text']
|
15 |
-
=======
|
16 |
def get_results(video_url :str) -> str:
|
17 |
|
18 |
logging.info(f">>>Getting predictions for : {video_url}")
|
@@ -33,7 +25,6 @@ def get_results(video_url :str) -> str:
|
|
33 |
except Exception as e:
|
34 |
logging.exception(e)
|
35 |
return str(e)
|
36 |
-
>>>>>>> 0740c74 (input through youtube added)
|
37 |
|
38 |
|
39 |
|
|
|
5 |
import config
|
6 |
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
def get_results(video_url :str) -> str:
|
9 |
|
10 |
logging.info(f">>>Getting predictions for : {video_url}")
|
|
|
25 |
except Exception as e:
|
26 |
logging.exception(e)
|
27 |
return str(e)
|
|
|
28 |
|
29 |
|
30 |
|