Yassmen commited on
Commit
05288ba
·
verified ·
1 Parent(s): c23cb90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -7,7 +7,7 @@ import tensorflow as tf
7
  from music21 import *
8
  from midi2audio import FluidSynth
9
  from streamlit_lottie import st_lottie
10
- import hydralit_components as hc
11
 
12
  # Set page config
13
  st.set_page_config(page_title="Music Generation", page_icon=":tada:", layout="wide")
@@ -19,7 +19,7 @@ def load_lottieurl(url):
19
  return r.json()
20
 
21
  # Load Lottie animation
22
- lottie_coding = load_lottieurl("https://assets5.lottiefiles.com/private_files/lf30_fjln45y5.json")
23
 
24
  # Header section
25
  with st.container():
@@ -30,7 +30,8 @@ with st.container():
30
  "Our website is an application of piano music generation, you can listen to new musical notes generated by LSTM artificial neural network, which is used in fields of AI and deep learning. Let's get it started :notes:"
31
  )
32
  with right_column:
33
- st_lottie(lottie_coding, height=300, key="coding")
 
34
 
35
  # Sidebar for user input
36
  with st.sidebar:
 
7
  from music21 import *
8
  from midi2audio import FluidSynth
9
  from streamlit_lottie import st_lottie
10
+ #import hydralit_components as hc
11
 
12
  # Set page config
13
  st.set_page_config(page_title="Music Generation", page_icon=":tada:", layout="wide")
 
19
  return r.json()
20
 
21
  # Load Lottie animation
22
+ #lottie_coding = load_lottieurl("https://assets5.lottiefiles.com/private_files/lf30_fjln45y5.json")
23
 
24
  # Header section
25
  with st.container():
 
30
  "Our website is an application of piano music generation, you can listen to new musical notes generated by LSTM artificial neural network, which is used in fields of AI and deep learning. Let's get it started :notes:"
31
  )
32
  with right_column:
33
+ # Display a GIF instead of Lottie animation
34
+ st.image("path_to_your_gif.gif", use_column_width=True)
35
 
36
  # Sidebar for user input
37
  with st.sidebar: