Shashidhar226 commited on
Commit
3bb5190
1 Parent(s): 2256545

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -155,10 +155,10 @@ 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
- image = Image.open(uploaded_file)
159
 
160
- # if image.format == 'PNG':
161
- # image = convert_png_to_jpg(image)
162
 
163
  # data_table = generate_table(uploaded_file)
164
 
 
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)
162
 
163
  # data_table = generate_table(uploaded_file)
164