saattrupdan commited on
Commit
4474937
1 Parent(s): fed1edc

feat: Add "contact us" block

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -32,7 +32,18 @@ icon = """
32
  <line x1="12" y1="3" x2="12" y2="15"/>
33
  </svg>
34
  """
35
- TITLE = "Røst Speech-to-Text Demo"
 
 
 
 
 
 
 
 
 
 
 
36
  DESCRIPTION = f"""
37
  This is a demo of the Danish speech recognition model
38
  [Røst](https://huggingface.co/alexandrainst/roest-315m).
@@ -41,6 +52,10 @@ Press "Record" to record your
41
  own voice. When you're done you can press "Stop" to stop recording and "Submit" to
42
  send the audio to the model for transcription. You can also upload an audio file by
43
  pressing the {icon} button.
 
 
 
 
44
  """
45
 
46
  logger.info("Loading the ASR model...")
 
32
  <line x1="12" y1="3" x2="12" y2="15"/>
33
  </svg>
34
  """
35
+ TITLE = "Røst tale-til-tekst demo"
36
+ EMAIL_SUBJECT = "Røst Speech-to-Text Demo".replace(" ", "+")
37
+ EMAIL_BODY = """Hej,
38
+
39
+ Jeg har lige prøvet jeres Røst tale-til-tekst demo, og jeg er imponeret!
40
+
41
+ Jeg kunne godt tænke mig at høre mere om jeres talegenkendelsesløsninger.
42
+
43
+ Min use case er [indsæt use case her].
44
+
45
+ Venlig hilsen,
46
+ [dit navn]""".replace(" ", "+").replace("\n", "%0D")
47
  DESCRIPTION = f"""
48
  This is a demo of the Danish speech recognition model
49
  [Røst](https://huggingface.co/alexandrainst/roest-315m).
 
52
  own voice. When you're done you can press "Stop" to stop recording and "Submit" to
53
  send the audio to the model for transcription. You can also upload an audio file by
54
  pressing the {icon} button.
55
+
56
+ _If you like what you see and are interested in integrating speech-to-text solutions
57
+ into your products, feel free to
58
+ [contact us](mailto:[email protected]?subject={EMAIL_SUBJECT}&body={EMAIL_BODY})._
59
  """
60
 
61
  logger.info("Loading the ASR model...")