Keyurjotaniya007 commited on
Commit
ca8bf05
·
verified ·
1 Parent(s): 967819f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -3
app.py CHANGED
@@ -19,8 +19,26 @@ def main():
19
  left, right = st.columns([1, 7])
20
 
21
  with left:
22
- st.markdown("### 📁 Upload Image")
23
- uploaded_image = st.file_uploader("Drag and drop or browse", type=["jpg", "jpeg", "png"])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  with right:
26
  if uploaded_image:
@@ -41,4 +59,4 @@ def main():
41
  st.error(f"Error: {e}")
42
 
43
  if __name__ == "__main__":
44
- main()
 
19
  left, right = st.columns([1, 7])
20
 
21
  with left:
22
+ st.markdown("""
23
+ <div style='
24
+ border: 2px dashed #cccccc;
25
+ border-radius: 10px;
26
+ padding: 20px;
27
+ text-align: center;
28
+ background-color: #f9f9f9;
29
+ width: 100%;
30
+ '>
31
+ <h3 style="margin-top: 0;">📁 Upload Image</h3>
32
+ <p>Drag and drop or browse</p>
33
+ """, unsafe_allow_html=True)
34
+
35
+ uploaded_image = st.file_uploader(
36
+ label="Upload a website UI screenshot",
37
+ type=["jpg", "jpeg", "png"],
38
+ label_visibility="collapsed"
39
+ )
40
+
41
+ st.markdown("</div>", unsafe_allow_html=True)
42
 
43
  with right:
44
  if uploaded_image:
 
59
  st.error(f"Error: {e}")
60
 
61
  if __name__ == "__main__":
62
+ main()