annapurnapadmaprema-ji commited on
Commit
2dd0adf
1 Parent(s): 0d159b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -5,11 +5,16 @@ import torch
5
  import torchaudio
6
  from io import BytesIO
7
 
 
 
8
  st.set_page_config(
9
  page_icon=":musical_note:",
10
  page_title="Music Gen"
11
  )
12
 
 
 
 
13
  @st.cache_resource
14
  def load_model():
15
  model = MusicGen.get_pretrained("facebook/musicgen-small")
 
5
  import torchaudio
6
  from io import BytesIO
7
 
8
+
9
+
10
  st.set_page_config(
11
  page_icon=":musical_note:",
12
  page_title="Music Gen"
13
  )
14
 
15
+ with open("styles.css") as f:
16
+ st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
17
+
18
  @st.cache_resource
19
  def load_model():
20
  model = MusicGen.get_pretrained("facebook/musicgen-small")