keivalya commited on
Commit
178dcf0
·
verified ·
1 Parent(s): 27d8b8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ def analyze_song(mp3_file):
41
  lyrics = transcription # Use the transcription as lyrics
42
  tempo_key = "Sample Tempo/Key"
43
  history = "History"
44
- return title, artist, genre, instrumentation, lyrics, tempo_key, mp3_file, image_url, history # Return the mp3 file for replay
45
 
46
  # Custom CSS to set a fun musical theme image as background
47
  css = """
@@ -72,7 +72,7 @@ demo = gr.Interface(
72
  gr.Textbox(label="Lyrics"),
73
  gr.Textbox(label="Tempo/Key"),
74
  gr.Textbox(label="History"),
75
- gr.Audio(label="Replay Recorded Audio"), # Add an output for replaying the recorded audio
76
  gr.Image(label="Cover") # Gives the Cover image
77
  ],
78
  theme=Soft(), # Apply the Soft theme
 
41
  lyrics = transcription # Use the transcription as lyrics
42
  tempo_key = "Sample Tempo/Key"
43
  history = "History"
44
+ return title, artist, genre, instrumentation, lyrics, tempo_key, history, image_url # Return the mp3 file for replay
45
 
46
  # Custom CSS to set a fun musical theme image as background
47
  css = """
 
72
  gr.Textbox(label="Lyrics"),
73
  gr.Textbox(label="Tempo/Key"),
74
  gr.Textbox(label="History"),
75
+ # gr.Audio(label="Replay Recorded Audio"), # Add an output for replaying the recorded audio
76
  gr.Image(label="Cover") # Gives the Cover image
77
  ],
78
  theme=Soft(), # Apply the Soft theme