Update app.py
Browse files
app.py
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
-
#
|
2 |
|
3 |
import gradio as gr
|
4 |
import shutil
|
5 |
import os
|
6 |
import subprocess
|
7 |
import sys
|
8 |
-
from whisper_audio_transcriber import transcribe_audio, guardar_transcripcion
|
9 |
-
from call_openai_api import moni as rtff
|
10 |
-
|
11 |
|
|
|
|
|
12 |
|
|
|
|
|
13 |
|
14 |
# Rutas
|
15 |
-
sys.path.append(os.path.abspath("./src"))
|
16 |
AUDIO_RECORD_PATH = os.path.abspath("./assets/audio/grabacion_gradio.wav")
|
17 |
VIDEO_PATH = os.path.abspath("./assets/video/data_video_sun.mp4")
|
18 |
TRANSCRIPTION_TEXT_PATH = os.path.abspath("./results/transcripcion.txt")
|
|
|
1 |
+
# interfaceV3.py
|
2 |
|
3 |
import gradio as gr
|
4 |
import shutil
|
5 |
import os
|
6 |
import subprocess
|
7 |
import sys
|
|
|
|
|
|
|
8 |
|
9 |
+
# AÑADIR RUTA DEL MÓDULO CUSTOM
|
10 |
+
sys.path.append(os.path.abspath("./src"))
|
11 |
|
12 |
+
from whisper_audio_transcriber import transcribe_audio, guardar_transcripcion
|
13 |
+
from call_openai_api import moni as rtff
|
14 |
|
15 |
# Rutas
|
|
|
16 |
AUDIO_RECORD_PATH = os.path.abspath("./assets/audio/grabacion_gradio.wav")
|
17 |
VIDEO_PATH = os.path.abspath("./assets/video/data_video_sun.mp4")
|
18 |
TRANSCRIPTION_TEXT_PATH = os.path.abspath("./results/transcripcion.txt")
|