pop47 commited on
Commit
573586a
·
1 Parent(s): 4a7839c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -14,6 +14,12 @@ file_name = st.file_uploader("Upload an image file (JPEG, PNG, etc.)")
14
  # Create a camera input widget to capture images from the webcam
15
  image = st.camera_input("Capture an image from your webcam")
16
 
 
 
 
 
 
 
17
  if file_name is not None or image is not None:
18
  # Check if the image is a webcam image
19
  if file_name == 'webcam_image.jpg':
@@ -28,11 +34,6 @@ if file_name is not None or image is not None:
28
 
29
  col1, col2 = st.columns(2)
30
 
31
- # Add a text bar to add a title
32
- image_title = st.text_input("Image Title", value="Specificity is nice!")
33
-
34
- # Add a text bar to add a description
35
- image_description = st.text_input("Image Description", value="(Optional)")
36
 
37
  col1.image(image, use_column_width=True)
38
 
 
14
  # Create a camera input widget to capture images from the webcam
15
  image = st.camera_input("Capture an image from your webcam")
16
 
17
+ # Add a text bar to add a title
18
+ image_title = st.text_input("Image Title", value="Specificity is nice!")
19
+
20
+ # Add a text bar to add a description
21
+ image_description = st.text_input("Image Description", value="(Optional)")
22
+
23
  if file_name is not None or image is not None:
24
  # Check if the image is a webcam image
25
  if file_name == 'webcam_image.jpg':
 
34
 
35
  col1, col2 = st.columns(2)
36
 
 
 
 
 
 
37
 
38
  col1.image(image, use_column_width=True)
39