Uzaiir commited on
Commit
c8bb585
·
verified ·
1 Parent(s): 3a742c5

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +5 -5
src/streamlit_app.py CHANGED
@@ -30,19 +30,19 @@ if uploaded_file:
30
 
31
 
32
  # with st.spinner("Generating Captions..."):
33
- # captions = generateCaption(image_path)
34
- # st.success(f"The image is of : {captions}")
35
 
36
 
37
 
38
  with st.spinner("Generating Captions..."):
39
- captions = generateCaption(image_path)
40
  st.success("Caption generated successfully!")
41
 
42
  st.markdown(f"""
43
  <div style="background-color:#f0f2f6;padding:15px 20px;border-radius:10px;margin-top:20px;border-left:5px solid #4CAF50;">
44
  <h4 style="margin-bottom:10px;">🖼️ <strong>Scenario is :</strong></h4>
45
- <p style="font-size:16px;color:#333;">{captions}</p>
46
  </div>
47
  """, unsafe_allow_html=True)
48
 
@@ -67,7 +67,7 @@ if uploaded_file:
67
 
68
 
69
  with st.spinner("Generating Story..."):
70
- story = generateStory(captions)
71
 
72
  st.markdown("""
73
  <div style="background-color:#f9f9f9;padding:15px 20px;border-radius:10px;margin-top:20px;border-left:5px solid #2196F3;">
 
30
 
31
 
32
  # with st.spinner("Generating Captions..."):
33
+ # caption = generateCaption(image_path)
34
+ # st.success(f"The image is of : {caption}")
35
 
36
 
37
 
38
  with st.spinner("Generating Captions..."):
39
+ caption = generateCaption(image_path)
40
  st.success("Caption generated successfully!")
41
 
42
  st.markdown(f"""
43
  <div style="background-color:#f0f2f6;padding:15px 20px;border-radius:10px;margin-top:20px;border-left:5px solid #4CAF50;">
44
  <h4 style="margin-bottom:10px;">🖼️ <strong>Scenario is :</strong></h4>
45
+ <p style="font-size:16px;color:#333;">{caption}</p>
46
  </div>
47
  """, unsafe_allow_html=True)
48
 
 
67
 
68
 
69
  with st.spinner("Generating Story..."):
70
+ story = generateStory(caption)
71
 
72
  st.markdown("""
73
  <div style="background-color:#f9f9f9;padding:15px 20px;border-radius:10px;margin-top:20px;border-left:5px solid #2196F3;">