Eun02 commited on
Commit
e258875
1 Parent(s): 929a463

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ def run(image):
8
  raise gr.Error('No input image')
9
 
10
  buffer = BytesIO()
11
- input_image.save(buffer, format='PNG')
12
  img_str = base64.b64encode(buffer.getvalue()).decode("utf-8")
13
  return img_str
14
 
 
8
  raise gr.Error('No input image')
9
 
10
  buffer = BytesIO()
11
+ image.save(buffer, format='PNG')
12
  img_str = base64.b64encode(buffer.getvalue()).decode("utf-8")
13
  return img_str
14