amir36 commited on
Commit
5965aac
1 Parent(s): d64af88

use array instead of asarray

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
  from PIL import Image
3
- from numpy import asarray
4
 
5
  def greet(name, place):
6
- return asarray(Image.open('sample.jpg'))
7
 
8
  iface = gr.Interface(
9
  title="Dialogue Box",
 
1
  import gradio as gr
2
  from PIL import Image
3
+ import numpy as np
4
 
5
  def greet(name, place):
6
+ return np.array(Image.open('sample.jpg'))
7
 
8
  iface = gr.Interface(
9
  title="Dialogue Box",