nelbarman053 commited on
Commit
71abe40
·
1 Parent(s): 84c6ea5

Home page completed

Browse files
app.py CHANGED
@@ -25,7 +25,19 @@ def main():
25
  with col_right:
26
  st.subheader('How to use')
27
 
28
- if st.button(label="Generator", type="primary"):
 
 
 
 
 
 
 
 
 
 
 
 
29
  st.switch_page(page='pages/Caption_Generator.py')
30
 
31
  if __name__ == "__main__":
 
25
  with col_right:
26
  st.subheader('How to use')
27
 
28
+ st.markdown("##### 1. Upload an image.")
29
+
30
+ st.image(image="assets/self_portrait.jpg", width=180)
31
+
32
+ st.markdown("##### 2. Click on 'Generate Caption'.")
33
+
34
+ st.button(label="Generate Caption", type="primary", key="disabled Generation", use_container_width=True, disabled=True)
35
+
36
+ st.markdown("##### 3. Boom!! Your imaginary caption is ready.")
37
+
38
+ st.markdown(f'<div style="display: flex; justify-content: center;"><p style="font-size: 25px; font-weight: bold; color: blue;">Johan Hagemeyer</p></div>', unsafe_allow_html = True)
39
+
40
+ if st.button(label="Go To Generator", type="primary"):
41
  st.switch_page(page='pages/Caption_Generator.py')
42
 
43
  if __name__ == "__main__":
assets/an_artist_would_call.jpeg DELETED
Binary file (156 kB)
 
assets/self_portrait.jpg ADDED
pages/Caption_Generator.py CHANGED
@@ -12,7 +12,7 @@ from transformers import VisionEncoderDecoderModel
12
  st.set_page_config(
13
  layout="centered",
14
  page_title="Generate Caption",
15
- initial_sidebar_state="auto",
16
  )
17
 
18
  # Initializing session state keys
 
12
  st.set_page_config(
13
  layout="centered",
14
  page_title="Generate Caption",
15
+ initial_sidebar_state="collapsed",
16
  )
17
 
18
  # Initializing session state keys