Commit
•
60d5808
1
Parent(s):
c4421d8
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from gradio.themes.utils.theme_dropdown import create_theme_dropdown
|
|
11 |
MODEL_NAME = "SakshiRathi77/Fine-tune-Whisper-Kagglex"
|
12 |
lang = "hi"
|
13 |
|
14 |
-
my_theme = gr.Theme.from_hub("HaleyCH/HaleyCH_Theme")
|
15 |
|
16 |
device = 0 if torch.cuda.is_available() else "cpu"
|
17 |
pipe = pipeline(
|
@@ -45,7 +45,7 @@ def rt_transcribe(audio, state=""):
|
|
45 |
|
46 |
|
47 |
|
48 |
-
demo = gr.Blocks(
|
49 |
examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
|
50 |
|
51 |
title ="""
|
@@ -61,7 +61,7 @@ Welcome to the HindiSpeechPro, a cutting-edge interface powered by a fine-tuned
|
|
61 |
</p>
|
62 |
"""
|
63 |
|
64 |
-
|
65 |
|
66 |
|
67 |
mf_transcribe = gr.Interface(
|
@@ -71,7 +71,6 @@ mf_transcribe = gr.Interface(
|
|
71 |
gr.inputs.Audio(source="upload", type="filepath"),
|
72 |
],
|
73 |
outputs="text",
|
74 |
-
# theme='EveryPizza/Cartoony-Gradio-Theme',
|
75 |
title=title,
|
76 |
description= description ,
|
77 |
allow_flagging="never",
|
@@ -86,7 +85,6 @@ rt_transcribe = gr.Interface(
|
|
86 |
],
|
87 |
outputs=[ "textbox",
|
88 |
"state"],
|
89 |
-
# theme='EveryPizza/Cartoony-Gradio-Theme',
|
90 |
title=title,
|
91 |
description= description ,
|
92 |
allow_flagging="never",
|
|
|
11 |
MODEL_NAME = "SakshiRathi77/Fine-tune-Whisper-Kagglex"
|
12 |
lang = "hi"
|
13 |
|
14 |
+
# my_theme = gr.Theme.from_hub("HaleyCH/HaleyCH_Theme")
|
15 |
|
16 |
device = 0 if torch.cuda.is_available() else "cpu"
|
17 |
pipe = pipeline(
|
|
|
45 |
|
46 |
|
47 |
|
48 |
+
demo = gr.Blocks()
|
49 |
examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
|
50 |
|
51 |
title ="""
|
|
|
61 |
</p>
|
62 |
"""
|
63 |
|
64 |
+
|
65 |
|
66 |
|
67 |
mf_transcribe = gr.Interface(
|
|
|
71 |
gr.inputs.Audio(source="upload", type="filepath"),
|
72 |
],
|
73 |
outputs="text",
|
|
|
74 |
title=title,
|
75 |
description= description ,
|
76 |
allow_flagging="never",
|
|
|
85 |
],
|
86 |
outputs=[ "textbox",
|
87 |
"state"],
|
|
|
88 |
title=title,
|
89 |
description= description ,
|
90 |
allow_flagging="never",
|