Pranomvignesh commited on
Commit
e68532b
·
1 Parent(s): d8c5837

Fixed issue in examples

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -33,18 +33,19 @@ title = "Detecting Unauthorized Individuals with Firearms"
33
  description = """
34
  Try the examples at bottom to get started.
35
  """
36
- examples = [[
37
- os.path.join(os.path.abspath(''), './examples/sample_1.png'),
38
- os.path.join(os.path.abspath(''), './examples/sample_2.png'),
39
- os.path.join(os.path.abspath(''), './examples/sample_3.png'),
40
- os.path.join(os.path.abspath(''), './examples/sample_4.png'),
41
- os.path.join(os.path.abspath(''), './examples/sample_5.png'),
42
- os.path.join(os.path.abspath(''), './examples/sample_6.png'),
43
- os.path.join(os.path.abspath(''), './examples/sample_7.png'),
44
- os.path.join(os.path.abspath(''), './examples/sample_8.png'),
45
- ]]
46
 
47
  inputs = gr.Image(type="pil", shape=(224, 224),
 
48
  label="Upload your image for detection")
49
  outputs = [
50
  gr.Image(type="pil", label="Gun Detections"),
 
33
  description = """
34
  Try the examples at bottom to get started.
35
  """
36
+ examples = [
37
+ [os.path.join(os.path.abspath(''), './examples/sample_1.png')],
38
+ [os.path.join(os.path.abspath(''), './examples/sample_2.png')],
39
+ [os.path.join(os.path.abspath(''), './examples/sample_3.png')],
40
+ [os.path.join(os.path.abspath(''), './examples/sample_4.png')],
41
+ [os.path.join(os.path.abspath(''), './examples/sample_5.png')],
42
+ [os.path.join(os.path.abspath(''), './examples/sample_6.png')],
43
+ [os.path.join(os.path.abspath(''), './examples/sample_7.png')],
44
+ [os.path.join(os.path.abspath(''), './examples/sample_8.png')],
45
+ ]
46
 
47
  inputs = gr.Image(type="pil", shape=(224, 224),
48
+ streaming=True,
49
  label="Upload your image for detection")
50
  outputs = [
51
  gr.Image(type="pil", label="Gun Detections"),