diff --git a/scraibe/app/Logo_KIDA_bmel_green.svg b/scraibe/app/Logo_KIDA_bmel_green.svg deleted file mode 100644 index c59c351..0000000 --- a/scraibe/app/Logo_KIDA_bmel_green.svg +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/scraibe/app/gradio_app.py b/scraibe/app/gradio_app.py index fa3e8fb..cf80b7e 100644 --- a/scraibe/app/gradio_app.py +++ b/scraibe/app/gradio_app.py @@ -34,7 +34,6 @@ Usage: import json import os -from tkinter import CURRENT import gradio as gr from tqdm import tqdm @@ -118,7 +117,7 @@ class GradioTranscriptionInterface: out = '' out_dict = {} for i, r in enumerate(result): - out += f"TRANSCRIPT {i} FOR ({source_names[i]}):\n\n" + out += f"TRANSCRIPT FOR {source_names[i]}:\n\n" out += str(r) out += "\n\n" @@ -159,7 +158,7 @@ class GradioTranscriptionInterface: out = '' for i, res in enumerate(result): - out += f"TRANSCRIPT {i} FOR ({source_names[i]}):\n\n" + out += f"TRANSCRIPT FOR {source_names[i]}:\n\n" out += str(res) out += "\n\n" @@ -354,6 +353,10 @@ def gradio_Interface(model : Scraibe = None): # Define components hname = os.path.join(CURRENT_PATH, "header.html") header = open(hname, "r").read() + + # ugly hack to get the logo to work + header = header.replace("/file=logo.svg", f"/file={CURRENT_PATH}/logo.svg" ) + gr.HTML(header, visible= True, show_label=False) with gr.Row(): @@ -385,7 +388,7 @@ def gradio_Interface(model : Scraibe = None): interactive= True, visible= False) video1 = gr.Video(source="upload", type="filepath", label="Upload Video", interactive= True, visible= False) - video2 = gr.Video(source="webcam", label="Record Video", type="filepath", + video2 = gr.Video(source="webcam", label="Record Video", type="filepath",include_audio= True, interactive= True, visible= False) file_in = gr.Files(label="Upload File or Files", interactive= True, visible= False) diff --git a/scraibe/app/header.html b/scraibe/app/header.html index f174bfd..4b12136 100644 --- a/scraibe/app/header.html +++ b/scraibe/app/header.html @@ -54,7 +54,7 @@

ScrAIbe

- +
diff --git a/scraibe/app/logo.svg b/scraibe/app/logo.svg new file mode 100644 index 0000000..54d12d7 --- /dev/null +++ b/scraibe/app/logo.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scraibe/transcript_exporter.py b/scraibe/transcript_exporter.py index ac037a1..3c68d87 100644 --- a/scraibe/transcript_exporter.py +++ b/scraibe/transcript_exporter.py @@ -1,7 +1,5 @@ import json import time -from traceback import print_stack - from typing import Union diff --git a/setup.py b/setup.py index 75d48dd..64d30b9 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ if __name__ == "__main__": 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10'], - keywords = ['transcription', 'speech recognition', 'whisper', 'pyannote', 'audio', + keywords = ['transcription', 'speech recognition', 'whisper', 'pyannote', 'audio', 'ScrAIbe', 'scraibe', 'speech-to-text', 'speech-to-text transcription', 'speech-to-text recognition', 'voice-to-speech'], package_data={'scraibe.app' : ["*.html", "*.svg"]},