SakshiRathi77 commited on
Commit
ff7533e
1 Parent(s): e2afe6d

changed theme of ui

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -36,29 +36,25 @@ def rt_transcribe(audio, state=""):
36
  time.sleep(2)
37
  text = pipe(audio)["text"]
38
  state += unicodedata.normalize("NFC",text) + " "
 
39
  return state, state
40
 
 
 
41
  demo = gr.Blocks()
42
  examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
43
 
44
  title ="""
45
-
46
- <p style="font-family: 'Tilt Neon', sans-serif; font-size: 38px; font-weight: bold;">
47
- <center>
48
  HindiSpeechPro: WAV2VEC-Powered ASR Interface
49
- </center>
50
- </p>
51
  """
52
 
53
-
54
  description = """
55
  <p style="font-family: 'Arial', sans-serif; font-size: 24px; font-weight: bold;">
56
  <center>
57
- Welcome to the HindiSpeechPro, a cutting-edge interface powered by a fine-tuned version of facebook/wav2vec2-xls-r-300m on the common_voice dataset. Easily convert your spoken words to accurate text with just a few clicks.
58
  <img src="https://huggingface.co/spaces/SakshiRathi77/SakshiRathi77-Wav2Vec2-hi-kagglex/resolve/main/Images/Hindi-Speech-Voice-Recognition-Tool.jpg" alt="logo" ;>
59
  </center>
60
  </p>
61
- </div>
62
  """
63
 
64
 
@@ -74,6 +70,7 @@ mf_transcribe = gr.Interface(
74
  description= description ,
75
  allow_flagging="never",
76
  examples=examples,
 
77
  )
78
 
79
  rt_transcribe = gr.Interface(
@@ -88,6 +85,7 @@ rt_transcribe = gr.Interface(
88
  title=title,
89
  description= description ,
90
  allow_flagging="never",
 
91
  live=True,
92
  )
93
 
 
36
  time.sleep(2)
37
  text = pipe(audio)["text"]
38
  state += unicodedata.normalize("NFC",text) + " "
39
+
40
  return state, state
41
 
42
+
43
+
44
  demo = gr.Blocks()
45
  examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
46
 
47
  title ="""
 
 
 
48
  HindiSpeechPro: WAV2VEC-Powered ASR Interface
 
 
49
  """
50
 
 
51
  description = """
52
  <p style="font-family: 'Arial', sans-serif; font-size: 24px; font-weight: bold;">
53
  <center>
54
+ Welcome to the HindiSpeechPro, a cutting-edge interface powered by a fine-tuned version of facebook/wav2vec2-xls-r-300m on the common_voice dataset.
55
  <img src="https://huggingface.co/spaces/SakshiRathi77/SakshiRathi77-Wav2Vec2-hi-kagglex/resolve/main/Images/Hindi-Speech-Voice-Recognition-Tool.jpg" alt="logo" ;>
56
  </center>
57
  </p>
 
58
  """
59
 
60
 
 
70
  description= description ,
71
  allow_flagging="never",
72
  examples=examples,
73
+ theme='EveryPizza/Cartoony-Gradio-Theme',
74
  )
75
 
76
  rt_transcribe = gr.Interface(
 
85
  title=title,
86
  description= description ,
87
  allow_flagging="never",
88
+ theme='EveryPizza/Cartoony-Gradio-Theme',
89
  live=True,
90
  )
91