Spaces:
Running
Running
sahandkh1419
commited on
Commit
•
04c8b38
1
Parent(s):
21194af
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import streamlit as st
|
|
2 |
import whisper
|
3 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
4 |
from sklearn.metrics.pairwise import cosine_similarity
|
5 |
-
from audio_recorder_streamlit import audio_recorder
|
6 |
|
7 |
st.set_page_config(
|
8 |
page_title="Sing It Forward App",
|
@@ -55,8 +54,7 @@ model = whisper.load_model("base")
|
|
55 |
st.audio("titanic.mp3")
|
56 |
st.write("Listen to music since you have to record 15seconds after that")
|
57 |
|
58 |
-
|
59 |
-
audio_value = audio_recorder()
|
60 |
lyrics = "Far across the distance And spaces between us You have come to show you go on"
|
61 |
|
62 |
if audio_value:
|
|
|
2 |
import whisper
|
3 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
4 |
from sklearn.metrics.pairwise import cosine_similarity
|
|
|
5 |
|
6 |
st.set_page_config(
|
7 |
page_title="Sing It Forward App",
|
|
|
54 |
st.audio("titanic.mp3")
|
55 |
st.write("Listen to music since you have to record 15seconds after that")
|
56 |
|
57 |
+
audio_value = st.experimental_audio_input("Sing Rest of music:🎙️")
|
|
|
58 |
lyrics = "Far across the distance And spaces between us You have come to show you go on"
|
59 |
|
60 |
if audio_value:
|