SakshiRathi77 commited on
Commit
65eb9eb
1 Parent(s): c5ce1b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -4
app.py CHANGED
@@ -40,17 +40,28 @@ def rt_transcribe(audio, state=""):
40
 
41
  demo = gr.Blocks()
42
  examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
 
 
 
 
 
 
 
 
 
 
43
  description = """
44
- <p>
 
 
45
  <center>
46
  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.
 
47
  </center>
48
  </p>
49
- <img src="https://huggingface.co/spaces/SakshiRathi77/SakshiRathi77-Wav2Vec2-hi-kagglex/blob/main/Images/Hindi-Speech-Voice-Recognition-Tool.jpg" alt="logo"/>
50
-
51
  """
52
 
53
- css='div {background-image: url("https://huggingface.co/spaces/SakshiRathi77/SakshiRathi77-Wav2Vec2-hi-kagglex/resolve/main/Images/image-bg.jpg")}'
54
 
55
  mf_transcribe = gr.Interface(
56
  fn=transcribe,
 
40
 
41
  demo = gr.Blocks()
42
  examples=[["examples/example1.mp3"], ["examples/example2.mp3"],["examples/example3.mp3"]]
43
+
44
+ <style>
45
+ .full-bg {
46
+ background-image: url('https://huggingface.co/spaces/SakshiRathi77/SakshiRathi77-Wav2Vec2-hi-kagglex/resolve/main/Images/image-bg.jpg');
47
+ background-size: cover;
48
+ height: 100vh;
49
+ }
50
+ </style>
51
+
52
+
53
  description = """
54
+
55
+ <div class="full-bg">
56
+ <p style="font-family: 'Arial', sans-serif; font-size: 24px; font-weight: bold;">
57
  <center>
58
  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.
59
+ <img src="https://huggingface.co/spaces/SakshiRathi77/SakshiRathi77-Wav2Vec2-hi-kagglex/blob/main/Images/Hindi-Speech-Voice-Recognition-Tool.jpg" alt="logo" style="width:500px;height:auto;>
60
  </center>
61
  </p>
62
+ </div>
 
63
  """
64
 
 
65
 
66
  mf_transcribe = gr.Interface(
67
  fn=transcribe,