Dvjc1899 commited on
Commit
7c71738
·
1 Parent(s): 28c0062

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ import gradio as gr
11
  model = from_pretrained_keras("Dvjc1899/super-resolution")
12
 
13
  def infer(image):
14
- image = np.resize(image, (100,100))
15
- img = Image.fromarray(image )
16
  ycbcr = img.convert("YCbCr")
17
  y, cb, cr = ycbcr.split()
18
  y = img_to_array(y)
 
11
  model = from_pretrained_keras("Dvjc1899/super-resolution")
12
 
13
  def infer(image):
14
+ img = Image.fromarray(image)
15
+ img = Image.resize(100,100)
16
  ycbcr = img.convert("YCbCr")
17
  y, cb, cr = ycbcr.split()
18
  y = img_to_array(y)