Spaces:
Runtime error
Runtime error
Shashidhar226
commited on
Commit
•
cb48d5e
1
Parent(s):
3bb5190
Update app.py
Browse files
app.py
CHANGED
@@ -155,7 +155,7 @@ def chat_with_graph():
|
|
155 |
uploaded_file = st.file_uploader('Upload your GRAPH', type=['png', 'jpeg', 'jpg'], key="graphUploader")
|
156 |
|
157 |
if uploaded_file is not None:
|
158 |
-
|
159 |
|
160 |
if image.format == 'PNG':
|
161 |
image = convert_png_to_jpg(image)
|
|
|
155 |
uploaded_file = st.file_uploader('Upload your GRAPH', type=['png', 'jpeg', 'jpg'], key="graphUploader")
|
156 |
|
157 |
if uploaded_file is not None:
|
158 |
+
image = Image.open(uploaded_file)
|
159 |
|
160 |
if image.format == 'PNG':
|
161 |
image = convert_png_to_jpg(image)
|