use array instead of asarray
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
-
|
4 |
|
5 |
def greet(name, place):
|
6 |
-
return
|
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",
|