Sakil commited on
Commit
7d8d72f
·
1 Parent(s): bc5d18b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
6
  model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
7
 
8
  def get_data():
9
- lyrics_data=pd.read_csv('/content/Lyrics.csv')
10
  lyrics_data=lyrics_data.assign(embeddings=(lyrics_data['Lyric'].astype('str')).apply(lambda x: model.encode(x)))
11
  lyrics_data=lyrics_data.drop(columns=['Unnamed: 0'],axis=1)
12
  lyrics_data.dropna(inplace=True)
@@ -29,4 +29,4 @@ iface = gr.Interface(
29
  #css="https://www.w3schools.com/cssref/playit.asp?filename=playcss_background-color",
30
  title='Songify',
31
  description="Songify is a software tool designed to suggest personalized music playlists to users based on their preference.Users can also discover new music and explore different genres through the app's recommendations. The goal of Songify is to help users find the perfect music for any mood or occasion quickly and effortlessly. ")
32
- iface.launch(inline=True)
 
6
  model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
7
 
8
  def get_data():
9
+ lyrics_data=pd.read_csv('Lyrics.csv')
10
  lyrics_data=lyrics_data.assign(embeddings=(lyrics_data['Lyric'].astype('str')).apply(lambda x: model.encode(x)))
11
  lyrics_data=lyrics_data.drop(columns=['Unnamed: 0'],axis=1)
12
  lyrics_data.dropna(inplace=True)
 
29
  #css="https://www.w3schools.com/cssref/playit.asp?filename=playcss_background-color",
30
  title='Songify',
31
  description="Songify is a software tool designed to suggest personalized music playlists to users based on their preference.Users can also discover new music and explore different genres through the app's recommendations. The goal of Songify is to help users find the perfect music for any mood or occasion quickly and effortlessly. ")
32
+ iface.launch(inline=False)