Commit
•
d0fa31e
1
Parent(s):
eee19f5
applying theme in another form
Browse files
app.py
CHANGED
@@ -9,6 +9,8 @@ import unicodedata
|
|
9 |
MODEL_NAME = "SakshiRathi77/Fine-tune-Whisper-Kagglex"
|
10 |
lang = "hi"
|
11 |
|
|
|
|
|
12 |
device = 0 if torch.cuda.is_available() else "cpu"
|
13 |
pipe = pipeline(
|
14 |
task="automatic-speech-recognition",
|
@@ -41,7 +43,7 @@ def rt_transcribe(audio, state=""):
|
|
41 |
|
42 |
|
43 |
|
44 |
-
demo = gr.Blocks(theme=
|
45 |
examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
|
46 |
|
47 |
title ="""
|
|
|
9 |
MODEL_NAME = "SakshiRathi77/Fine-tune-Whisper-Kagglex"
|
10 |
lang = "hi"
|
11 |
|
12 |
+
my_theme = gr.Theme.from_hub("gradio/seafoam")
|
13 |
+
|
14 |
device = 0 if torch.cuda.is_available() else "cpu"
|
15 |
pipe = pipeline(
|
16 |
task="automatic-speech-recognition",
|
|
|
43 |
|
44 |
|
45 |
|
46 |
+
demo = gr.Blocks(theme=my_theme)
|
47 |
examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
|
48 |
|
49 |
title ="""
|