awacke1 commited on
Commit
77cc002
ยท
1 Parent(s): b00c289

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,7 +4,6 @@ import timm
4
  import random
5
  import pickle
6
 
7
-
8
  infile = open('gamename_dict.pkl','rb')
9
  game_name_dict = pickle.load(infile)
10
  infile.close()
@@ -29,14 +28,15 @@ def recognize_game_all(img):
29
  image = gr.inputs.Image()
30
  label = gr.outputs.Label(num_top_classes=48)
31
  title= 'A Game For That - Gamification Using Snapshot Images'
32
- examples = ['image.jpg','1.1.jpg','1.2.jpg','2.jpg','3.jpg','4.jpg', '5.jpg' ]
33
 
34
  iface = gr.Interface(
35
  fn=recognize_game_all,
36
  inputs=image,
37
  outputs=label,
38
  title=title,
39
- examples=examples)
 
40
 
41
  #iface.launch(inline=False)
42
  iface.launch(debug=True)
 
4
  import random
5
  import pickle
6
 
 
7
  infile = open('gamename_dict.pkl','rb')
8
  game_name_dict = pickle.load(infile)
9
  infile.close()
 
28
  image = gr.inputs.Image()
29
  label = gr.outputs.Label(num_top_classes=48)
30
  title= 'A Game For That - Gamification Using Snapshot Images'
31
+ # examples = ['image.jpg','1.1.jpg','1.2.jpg','2.jpg','3.jpg','4.jpg', '5.jpg' ]
32
 
33
  iface = gr.Interface(
34
  fn=recognize_game_all,
35
  inputs=image,
36
  outputs=label,
37
  title=title,
38
+ #examples=examples
39
+ )
40
 
41
  #iface.launch(inline=False)
42
  iface.launch(debug=True)