erfanasgari21 commited on
Commit
791e174
·
verified ·
1 Parent(s): 0eef753

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,10 +17,10 @@ def predict(image):
17
  width, height = image.size
18
  ratio = width / height
19
  if(width > height):
20
- height = int(256 * ratio)
21
  width = 256
22
  else:
23
- width = int(256 / ratio)
24
  height = 256
25
 
26
  image = TF.resize(image, (height, width))
@@ -54,4 +54,4 @@ iface = gr.Interface(
54
  )
55
 
56
  # Launch the interface
57
- iface.launch(share=True)
 
17
  width, height = image.size
18
  ratio = width / height
19
  if(width > height):
20
+ height = int(256 / ratio)
21
  width = 256
22
  else:
23
+ width = int(256 * ratio)
24
  height = 256
25
 
26
  image = TF.resize(image, (height, width))
 
54
  )
55
 
56
  # Launch the interface
57
+ iface.launch()