SakshiRathi77 commited on
Commit
4bcd948
1 Parent(s): aea591d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,12 +5,12 @@ from transformers import pipeline
5
  from huggingface_hub import model_info
6
  import time
7
  import unicodedata
8
- from gradio.themes.utils.theme_dropdown import create_theme_dropdown
9
 
10
  MODEL_NAME = "SakshiRathi77/wav2vec2-large-xlsr-300m-hi-kagglex"
11
  lang = "hi"
12
 
13
- my_theme = gr.Theme.from_hub('freddyaboulton/dracula_revamped')
14
  device = 0 if torch.cuda.is_available() else "cpu"
15
  pipe = pipeline(
16
  task="automatic-speech-recognition",
@@ -43,7 +43,7 @@ def rt_transcribe(audio, state=""):
43
 
44
 
45
 
46
- demo = gr.Blocks(theme=my_theme)
47
  examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
48
 
49
  title ="""
 
5
  from huggingface_hub import model_info
6
  import time
7
  import unicodedata
8
+ # from gradio.themes.utils.theme_dropdown import create_theme_dropdown
9
 
10
  MODEL_NAME = "SakshiRathi77/wav2vec2-large-xlsr-300m-hi-kagglex"
11
  lang = "hi"
12
 
13
+ # my_theme = gr.Theme.from_hub('freddyaboulton/dracula_revamped')
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()
47
  examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
48
 
49
  title ="""