mrbeliever commited on
Commit
0510f64
1 Parent(s): 97260f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -77,7 +77,7 @@ if uploaded_image and API_KEY:
77
  .get("content", "No caption generated.")
78
  )
79
  st.subheader("Generated Caption")
80
- st.write(caption)
81
 
82
  except Exception as e:
83
  st.error(f"Error processing the response: {e}")
@@ -97,6 +97,10 @@ st.markdown(
97
  .css-1aumxhk {display: flex; justify-content: center;}
98
  .css-1k6kn8p {justify-content: center; align-items: center; display: flex;}
99
  .css-ffhzg6 {text-align: center;}
 
 
 
 
100
  </style>
101
  """, unsafe_allow_html=True
102
  )
 
77
  .get("content", "No caption generated.")
78
  )
79
  st.subheader("Generated Caption")
80
+ st.text_area("Caption Output", caption, height=200, key="caption_output", disabled=True)
81
 
82
  except Exception as e:
83
  st.error(f"Error processing the response: {e}")
 
97
  .css-1aumxhk {display: flex; justify-content: center;}
98
  .css-1k6kn8p {justify-content: center; align-items: center; display: flex;}
99
  .css-ffhzg6 {text-align: center;}
100
+ textarea {
101
+ color: white !important;
102
+ background-color: #262626 !important;
103
+ }
104
  </style>
105
  """, unsafe_allow_html=True
106
  )