George commited on
Commit
e7861c2
·
1 Parent(s): 30b9034

changes to app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -12,14 +12,16 @@ def predict(img):
12
  return result
13
 
14
 
15
- gr.Interface(
16
  fn=predict,
17
- inputs=gr.inputs.Image(shape=(512, 512)),
18
- outputs=gr.outputs.Label(num_top_classes=3),
19
  title="Saving the silkies",
20
  description="A pigeon/silkie classifier. Create as a demo for entertainment and educational purposes.",
21
  article="<p style='text-align: center'><a href='LINK_HERE' target='_blank'>Blog post</a></p>",
22
  examples=["IMG_3558.jpg"],
23
  interpretation="default",
24
  enable_queue=True,
25
- ).launch(share=True)
 
 
 
12
  return result
13
 
14
 
15
+ demo = gr.Interface(
16
  fn=predict,
17
+ inputs=gr.Image(shape=(512, 512)),
18
+ outputs=gr.Label(num_top_classes=3),
19
  title="Saving the silkies",
20
  description="A pigeon/silkie classifier. Create as a demo for entertainment and educational purposes.",
21
  article="<p style='text-align: center'><a href='LINK_HERE' target='_blank'>Blog post</a></p>",
22
  examples=["IMG_3558.jpg"],
23
  interpretation="default",
24
  enable_queue=True,
25
+ )
26
+ demo.queue(concurrency_count=2, max_size=15)
27
+ demo.launch()