Spaces:
Sleeping
Sleeping
Kushwanth Chowday Kandala
commited on
Commit
•
4766d46
1
Parent(s):
be1c697
Changed the callback function name for the image uploader.
Browse files
app.py
CHANGED
@@ -49,7 +49,10 @@ 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= type=['png','jpg'])
|
53 |
if img_file_buffer is not None:
|
54 |
image = Image.open(img_file_buffer)
|
55 |
-
img_array = np.array(image)
|
|
|
|
|
|
|
|
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')
|