cpcris commited on
Commit
85984b8
1 Parent(s): 2c03d43

Update css

Browse files
Files changed (1) hide show
  1. app.py +17 -13
app.py CHANGED
@@ -2,20 +2,18 @@ import gradio as gr
2
 
3
  modelo_path = "models/proxectonos/Nos_ASR-wav2vec2-large-xlsr-53-gl-with-lm"
4
  modelo = gr.load(modelo_path)
 
5
  fronted_theme = "Soft"
6
 
7
  def cargar(audio):
8
  outtext = modelo(audio)
9
- print(outtext)
10
  texto_transcrito = outtext.split("'")[1].strip()
11
- print(texto_transcrito)
12
  return texto_transcrito
13
 
14
  custom_css = """
15
  #send-btn {
16
  background-color: blue;
17
  color: white;
18
-
19
  }
20
  #clear-btn {
21
  background-color: green;
@@ -25,9 +23,7 @@ custom_css = """
25
  box-shadow: 3px 3px 5px #0056b3;
26
  }
27
  #clear-btn:hover {
28
-
29
  box-shadow: 3px 3px 5px #1e7e34;
30
-
31
  }
32
 
33
  """
@@ -36,19 +32,27 @@ with gr.Blocks(fronted_theme, css=custom_css) as demo:
36
  with gr.Row():
37
  with gr.Column():
38
  gr.Markdown(
39
- """
40
- ## <img src="https://huggingface.co/spaces/proxectonos/README/resolve/main/title-card.png" width="100%" style="border-radius: 0.75rem;">
41
- """
 
 
 
 
 
42
  )
43
  with gr.Column():
44
  with gr.Row():
45
  gr.Markdown(
46
- """
47
- <br/>
 
 
 
48
 
49
- 💻 Este space mostra o modelo ASR desenvolvido polo **[Proxecto Nós](https://huggingface.co/proxectonos)**.
50
- <br/>
51
- """
52
  )
53
  with gr.Row():
54
  input_audio = gr.Audio(label="Entrada", type="filepath")
 
2
 
3
  modelo_path = "models/proxectonos/Nos_ASR-wav2vec2-large-xlsr-53-gl-with-lm"
4
  modelo = gr.load(modelo_path)
5
+
6
  fronted_theme = "Soft"
7
 
8
  def cargar(audio):
9
  outtext = modelo(audio)
 
10
  texto_transcrito = outtext.split("'")[1].strip()
 
11
  return texto_transcrito
12
 
13
  custom_css = """
14
  #send-btn {
15
  background-color: blue;
16
  color: white;
 
17
  }
18
  #clear-btn {
19
  background-color: green;
 
23
  box-shadow: 3px 3px 5px #0056b3;
24
  }
25
  #clear-btn:hover {
 
26
  box-shadow: 3px 3px 5px #1e7e34;
 
27
  }
28
 
29
  """
 
32
  with gr.Row():
33
  with gr.Column():
34
  gr.Markdown(
35
+ """
36
+ ## <h1 style="text-align:center">🗣️📄 ASR Demo Proxecto Nós </h1>
37
+ """
38
+ )
39
+ gr.Markdown(
40
+ """
41
+ ## <img src="https://huggingface.co/spaces/proxectonos/README/resolve/main/title-card.png" width="100%" style="border-radius: 0.75rem;">
42
+ """
43
  )
44
  with gr.Column():
45
  with gr.Row():
46
  gr.Markdown(
47
+ """
48
+ <br/>
49
+ <br/>
50
+ <br/>
51
+ <br/>
52
 
53
+ 💻 Este space mostra o modelo ASR desenvolvido polo **[Proxecto Nós](https://huggingface.co/proxectonos)**.
54
+ <br/>
55
+ """
56
  )
57
  with gr.Row():
58
  input_audio = gr.Audio(label="Entrada", type="filepath")