Spaces:
Runtime error
Runtime error
noumanjavaid
commited on
Commit
•
e147156
1
Parent(s):
4921ea7
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ uploaded_file = st.file_uploader("Choose an image...", type=['png', 'jpg', 'jpeg
|
|
57 |
if uploaded_file is not None and api_key:
|
58 |
# Display the uploaded image
|
59 |
image = Image.open(uploaded_file)
|
60 |
-
st.image(image, caption="Uploaded Image",
|
61 |
|
62 |
# Convert image to bytes
|
63 |
img_byte_arr = io.BytesIO()
|
@@ -101,9 +101,10 @@ elif not api_key and uploaded_file is not None:
|
|
101 |
# Add footer with instructions
|
102 |
st.markdown("---")
|
103 |
st.markdown("""
|
|
|
104 |
### How to use:
|
105 |
|
106 |
-
1. Upload an image
|
107 |
2. Wait for the analysis result
|
108 |
3. Get a ** Yes/No ** answer based on whether the image is AI-generated
|
109 |
|
|
|
57 |
if uploaded_file is not None and api_key:
|
58 |
# Display the uploaded image
|
59 |
image = Image.open(uploaded_file)
|
60 |
+
st.image(image, caption="Uploaded Image", use_container_width=True)
|
61 |
|
62 |
# Convert image to bytes
|
63 |
img_byte_arr = io.BytesIO()
|
|
|
101 |
# Add footer with instructions
|
102 |
st.markdown("---")
|
103 |
st.markdown("""
|
104 |
+
---
|
105 |
### How to use:
|
106 |
|
107 |
+
1. Upload an image (PNG, JPG, or JPEG)
|
108 |
2. Wait for the analysis result
|
109 |
3. Get a ** Yes/No ** answer based on whether the image is AI-generated
|
110 |
|