Spaces:
Sleeping
Sleeping
Kushwanth Chowday Kandala
commited on
Commit
•
54f6de5
1
Parent(s):
ff0e82b
update app.py
Browse files
app.py
CHANGED
@@ -49,10 +49,11 @@ for i in st.session_state["chat_history"]:
|
|
49 |
import numpy as np
|
50 |
from PIL import Image
|
51 |
|
|
|
|
|
|
|
52 |
img_file_buffer = st.file_uploader('Upload a PNG image', on_change=uploader_callback, type=['png','jpg'])
|
53 |
if img_file_buffer is not None:
|
54 |
image = Image.open(img_file_buffer)
|
55 |
img_array = np.array(image)
|
56 |
|
57 |
-
def uploader_callback():
|
58 |
-
print('Uploaded file')
|
|
|
49 |
import numpy as np
|
50 |
from PIL import Image
|
51 |
|
52 |
+
def uploader_callback():
|
53 |
+
print('Uploaded file')
|
54 |
+
|
55 |
img_file_buffer = st.file_uploader('Upload a PNG image', on_change=uploader_callback, type=['png','jpg'])
|
56 |
if img_file_buffer is not None:
|
57 |
image = Image.open(img_file_buffer)
|
58 |
img_array = np.array(image)
|
59 |
|
|
|
|