mrbeliever commited on
Commit
9a78687
·
verified ·
1 Parent(s): f38c83d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,8 +1,9 @@
1
- import streamlit as st
2
- import base64
3
  import os
 
 
4
  from PIL import Image
5
  from io import BytesIO
 
6
 
7
  # Function to compress and resize the image before base64 encoding
8
  def compress_and_resize_image(image, max_size=(1024, 1024), quality=85):
 
 
 
1
  import os
2
+ import base64
3
+ import requests # Import the requests module
4
  from PIL import Image
5
  from io import BytesIO
6
+ import streamlit as st
7
 
8
  # Function to compress and resize the image before base64 encoding
9
  def compress_and_resize_image(image, max_size=(1024, 1024), quality=85):