not-lain commited on
Commit
0d31ef7
·
verified ·
1 Parent(s): 3f1c4e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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,["text",gr.Image(type="pil")],["text"],examples=[["حصان, كلب, قطة", "cat.png"]], theme="ocean")
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)