John6666 commited on
Commit
fe68a44
·
verified ·
1 Parent(s): 97cfcd8

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -133,7 +133,7 @@ def convert_to_pil(base64_image):
133
 
134
  def convert_to_base64(pil_image):
135
  with tempfile.NamedTemporaryFile(suffix='.png', delete=False) as temp_file:
136
- image.save(temp_file.name)
137
  return temp_file.name
138
 
139
  # Inference function
 
133
 
134
  def convert_to_base64(pil_image):
135
  with tempfile.NamedTemporaryFile(suffix='.png', delete=False) as temp_file:
136
+ pil_image.save(temp_file.name)
137
  return temp_file.name
138
 
139
  # Inference function