sharner commited on
Commit
af5b628
1 Parent(s): 909b6fe

Changes to description

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -14,16 +14,15 @@ def get_song_guess(audio):
14
  output = "Vad vi hörde från dig: " + user_query + "\n\nVi tror att du sjöng: " + SongGuesser.guess_song(user_query)
15
  return output
16
 
 
 
 
17
  iface = gr.Interface(
18
  fn=get_song_guess,
19
  inputs=gr.Audio(sources=["microphone"], type="filepath"),
20
  outputs="text",
21
  title="Sjung en sång och låt oss gissa 🎤 🎄",
22
- description="Sing a Swedish Christmas song and see if we can guess it. If our guess is wrong, try singing more clearly, more of the lyrics, or another song and maybe we will get it the next time!",
23
  )
24
 
25
- markdown_text = "The songs that we can guess are: \n" + ListSongs.get_song_list()
26
-
27
- iface.add_component(gr.Markdown(markdown_text))
28
-
29
  iface.launch()
 
14
  output = "Vad vi hörde från dig: " + user_query + "\n\nVi tror att du sjöng: " + SongGuesser.guess_song(user_query)
15
  return output
16
 
17
+ intro_info = "Sing a Swedish Christmas song and see if we can guess it. If our guess is wrong, try singing more clearly, more of the lyrics, or another song and maybe we will get it the next time!"
18
+ song_info = "The songs that we can guess are: \n" + ListSongs.get_song_list()
19
+
20
  iface = gr.Interface(
21
  fn=get_song_guess,
22
  inputs=gr.Audio(sources=["microphone"], type="filepath"),
23
  outputs="text",
24
  title="Sjung en sång och låt oss gissa 🎤 🎄",
25
+ description= intro_info + "\n" + song_info,
26
  )
27
 
 
 
 
 
28
  iface.launch()