From e6db5e5bb97d5ed44730d405b76c7fc1a5488f63 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Tue, 26 Sep 2023 08:11:24 +0000 Subject: [PATCH 1/7] removed wrong import --- scraibe/app/gradio_app.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scraibe/app/gradio_app.py b/scraibe/app/gradio_app.py index fa3e8fb..f86d027 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 From 135acab0cedef62a12b9d8d3801360db447bf9cc Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Tue, 26 Sep 2023 08:14:40 +0000 Subject: [PATCH 2/7] removed wrong input --- scraibe/transcript_exporter.py | 2 -- 1 file changed, 2 deletions(-) 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 From b612f1004b190cd3eb3b1922cda8dccff06e76c6 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Tue, 26 Sep 2023 09:50:59 +0000 Subject: [PATCH 3/7] fixed image not showing up --- scraibe/app/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraibe/app/header.html b/scraibe/app/header.html index f174bfd..5fcedb6 100644 --- a/scraibe/app/header.html +++ b/scraibe/app/header.html @@ -54,7 +54,7 @@

ScrAIbe

From ae9c24f92907036d62d1384add35fe9c1889d952 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Wed, 27 Sep 2023 08:40:58 +0000 Subject: [PATCH 4/7] fixed wrong logo import --- scraibe/app/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraibe/app/header.html b/scraibe/app/header.html index 5fcedb6..21a4464 100644 --- a/scraibe/app/header.html +++ b/scraibe/app/header.html @@ -54,7 +54,7 @@

ScrAIbe

From 7b8019c57ffc83d7136c4a9ad0bfa84c9f91690c Mon Sep 17 00:00:00 2001 From: Jaikinator Date: Fri, 29 Sep 2023 11:57:31 +0200 Subject: [PATCH 5/7] fixed gradio app lodo dismissed --- scraibe/app/Logo_KIDA_bmel_green.svg | 171 --------------------------- scraibe/app/gradio_app.py | 6 +- scraibe/app/header.html | 2 +- scraibe/app/logo.svg | 37 ++++++ 4 files changed, 43 insertions(+), 173 deletions(-) delete mode 100644 scraibe/app/Logo_KIDA_bmel_green.svg create mode 100644 scraibe/app/logo.svg 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 f86d027..2b6bbc4 100644 --- a/scraibe/app/gradio_app.py +++ b/scraibe/app/gradio_app.py @@ -353,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(): @@ -384,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 21a4464..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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 8cfc4ac9dba2f26b00c32153edd02e46d5038b56 Mon Sep 17 00:00:00 2001 From: Jaikinator Date: Fri, 29 Sep 2023 12:02:25 +0200 Subject: [PATCH 6/7] updated keywords --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]}, From 9db419cf540e619fa475b50f3a4f6e06000469da Mon Sep 17 00:00:00 2001 From: Jaikinator Date: Fri, 29 Sep 2023 12:29:13 +0200 Subject: [PATCH 7/7] changed output str for multiple file inputs --- scraibe/app/gradio_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraibe/app/gradio_app.py b/scraibe/app/gradio_app.py index 2b6bbc4..cf80b7e 100644 --- a/scraibe/app/gradio_app.py +++ b/scraibe/app/gradio_app.py @@ -117,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" @@ -158,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"