Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,15 +44,16 @@ with col1:
|
|
| 44 |
# File uploader for image
|
| 45 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])
|
| 46 |
|
| 47 |
-
# Display uploaded image (if any)
|
| 48 |
-
if uploaded_file:
|
| 49 |
-
input_image = Image.open(uploaded_file).convert("RGB")
|
| 50 |
-
st.image(input_image, caption="Uploaded Image", use_column_width=True)
|
| 51 |
-
|
| 52 |
# Text input for prompt
|
| 53 |
input_text = st.text_input("Enter your prompt:", "Identify the skin condition?")
|
| 54 |
|
|
|
|
| 55 |
with col2:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
# Process and display the result when the button is clicked
|
| 57 |
if uploaded_file and st.button("Analyze"):
|
| 58 |
if not input_text.strip():
|
|
|
|
| 44 |
# File uploader for image
|
| 45 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png"])
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
# Text input for prompt
|
| 48 |
input_text = st.text_input("Enter your prompt:", "Identify the skin condition?")
|
| 49 |
|
| 50 |
+
|
| 51 |
with col2:
|
| 52 |
+
# Display uploaded image (if any)
|
| 53 |
+
if uploaded_file:
|
| 54 |
+
input_image = Image.open(uploaded_file).convert("RGB")
|
| 55 |
+
st.image(input_image, caption="Uploaded Image", use_container_width=True)
|
| 56 |
+
|
| 57 |
# Process and display the result when the button is clicked
|
| 58 |
if uploaded_file and st.button("Analyze"):
|
| 59 |
if not input_text.strip():
|