Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,7 @@ def search(labels, image):
|
|
19 |
|
20 |
|
21 |
|
22 |
-
# data
|
23 |
-
labels = ["قطة جالسة", "قطة تقفز" ,"كلب", "حصان"]
|
24 |
-
image = Image.open("cat.png")
|
25 |
|
26 |
-
demo = gr.Interface(search,["
|
27 |
|
28 |
demo.launch(debug=True)
|
|
|
19 |
|
20 |
|
21 |
|
|
|
|
|
|
|
22 |
|
23 |
+
demo = gr.Interface(search,[gr.Textbox(label="separate labels with ',' "),gr.Image(type="pil")],["text"],examples=[["حصان, كلب, قطة", "cat.png"]], theme="ocean")
|
24 |
|
25 |
demo.launch(debug=True)
|