Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import streamlit as st
|
|
| 2 |
from PIL import Image
|
| 3 |
import os
|
| 4 |
from helper import (
|
| 5 |
-
resize_image, convert_image_to_base64, post_request_and_parse_response,
|
| 6 |
draw_bounding_boxes_for_textract, extract_text_from_textract_blocks, ChatGPTClient
|
| 7 |
)
|
| 8 |
|
|
@@ -19,7 +19,7 @@ if "messages" not in st.session_state:
|
|
| 19 |
# Sidebar for image upload
|
| 20 |
with st.sidebar:
|
| 21 |
st.title("🖼️ Upload and Display Images")
|
| 22 |
-
uploaded_image = st.
|
| 23 |
|
| 24 |
if uploaded_image:
|
| 25 |
pil_image = Image.open(uploaded_image)
|
|
|
|
| 2 |
from PIL import Image
|
| 3 |
import os
|
| 4 |
from helper import (
|
| 5 |
+
custom_file_uploader, resize_image, convert_image_to_base64, post_request_and_parse_response,
|
| 6 |
draw_bounding_boxes_for_textract, extract_text_from_textract_blocks, ChatGPTClient
|
| 7 |
)
|
| 8 |
|
|
|
|
| 19 |
# Sidebar for image upload
|
| 20 |
with st.sidebar:
|
| 21 |
st.title("🖼️ Upload and Display Images")
|
| 22 |
+
uploaded_image = st.custom_file_uploader()
|
| 23 |
|
| 24 |
if uploaded_image:
|
| 25 |
pil_image = Image.open(uploaded_image)
|