animikhaich commited on
Commit
792e81f
1 Parent(s): 032d7c2

Image and text centered, API key instructions, HTML headache stuff, bye bye done!

Browse files
.streamlit/config.toml CHANGED
@@ -1,2 +1,5 @@
1
  [browser]
2
- gatherUsageStats = false
 
 
 
 
1
  [browser]
2
+ gatherUsageStats = false
3
+
4
+ [theme]
5
+ base = "light"
assets/VidTune-Logo-With-BG.png ADDED
assets/VidTune-Logo-Without-BG.png ADDED
assets/favicon.png ADDED
main.py CHANGED
@@ -49,13 +49,27 @@ genre_map = {
49
 
50
  # Streamlit page configuration
51
  st.set_page_config(
52
- page_title="VidTune: Where Videos Find Their Melody", layout="centered"
 
 
53
  )
54
 
 
 
 
 
55
  # Title and Description
56
- st.title("VidTune: Where Videos Find Their Melody")
57
- st.write(
58
- "VidTune is a web application that allows users to upload videos and generate melodies matching the mood of the video."
 
 
 
 
 
 
 
 
59
  )
60
 
61
  # Initialize session state for advanced settings and other inputs
@@ -99,7 +113,7 @@ st.sidebar.title("Configuration")
99
 
100
  # Google API Key
101
  st.session_state.google_api_key = st.sidebar.text_input(
102
- "Enter your Google API Key to get started:",
103
  st.session_state.google_api_key,
104
  type="password",
105
  )
 
49
 
50
  # Streamlit page configuration
51
  st.set_page_config(
52
+ page_title="VidTune: Where Videos Find Their Melody",
53
+ layout="centered",
54
+ page_icon="assets/favicon.png",
55
  )
56
 
57
+ left_co, cent_co, last_co = st.columns(3)
58
+ with cent_co:
59
+ st.image("assets/VidTune-Logo-Without-BG.png", use_column_width=False, width=200)
60
+
61
  # Title and Description
62
+ st.markdown(
63
+ """
64
+ <style>
65
+ h2, p, div, img {
66
+ text-align: center;
67
+ }
68
+ </style>
69
+ <div style="font-size: 35px; font-weight: bold;">VidTune: Where Videos Find Their Melody</div>
70
+ <p>VidTune is a web application to effortlessly tailor perfect soundtracks for your videos with AI.</p>
71
+ """,
72
+ unsafe_allow_html=True,
73
  )
74
 
75
  # Initialize session state for advanced settings and other inputs
 
113
 
114
  # Google API Key
115
  st.session_state.google_api_key = st.sidebar.text_input(
116
+ "Enter your [Google API Key](https://ai.google.dev/gemini-api/docs/api-key) to get started :",
117
  st.session_state.google_api_key,
118
  type="password",
119
  )