make gradio working with treads

This commit is contained in:
Jaikinator
2023-11-25 15:17:12 +01:00
parent bbb2c848e3
commit 93e5ce15f9
6 changed files with 101 additions and 21 deletions
+1 -6
View File
@@ -9,8 +9,6 @@ import scraibe.app.global_var as gv
from .interactions import *
from .stg import *
from scraibe import Scraibe
theme = gr.themes.Soft(
primary_hue="green",
secondary_hue='orange',
@@ -36,10 +34,7 @@ LANGUAGES = [
CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
def gradio_Interface(pipe : Scraibe = None):
if pipe is not None:
gv.MODEL = GradioTranscriptionInterface(pipe)
def gradio_Interface():
with gr.Blocks(theme=theme,title='ScrAIbe: Automatic Audio Transcription') as demo: