mehulkatara commited on
Commit
aeafd73
·
1 Parent(s): a407df7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -15,9 +15,6 @@ def image_mod(image):
15
  # Get the image size
16
  width, height = new_image.size
17
 
18
- # Calculate the number of photos per row
19
- num_per_row = int(width / 4)
20
-
21
  # Create a new image to hold the photos
22
  output_image = Image.new("RGB", (width * 4, height * 2))
23
 
@@ -31,7 +28,7 @@ def image_mod(image):
31
 
32
  demo = gr.Interface(
33
  image_mod,
34
- gr.Image(type="pil"),
35
  "image",
36
  )
37
 
 
15
  # Get the image size
16
  width, height = new_image.size
17
 
 
 
 
18
  # Create a new image to hold the photos
19
  output_image = Image.new("RGB", (width * 4, height * 2))
20
 
 
28
 
29
  demo = gr.Interface(
30
  image_mod,
31
+ gr.Image(),
32
  "image",
33
  )
34