Spaces:
Sleeping
Sleeping
sahandkh1419
commited on
Commit
•
71adf72
1
Parent(s):
6e89a0a
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import streamlit as st
|
|
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,7 +55,8 @@ model = whisper.load_model("base")
|
|
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:
|
|
|
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 |
st.audio("titanic.mp3")
|
56 |
st.write("Listen to music since you have to record 15seconds after that")
|
57 |
|
58 |
+
# audio_value = st.experimental_audio_input("Sing Rest of music:🎙️")
|
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:
|