arham061 commited on
Commit
10fbe99
1 Parent(s): 53d11fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -37,5 +37,8 @@ label = gr.outputs.Label(label="Game Result")
37
 
38
  examples = ['rock.jpg', 'paper.jpg', 'scissor.jpg']
39
 
40
- intf = gr.Interface(fn=play_game, inputs=image, outputs=[label, image])
 
 
41
  intf.launch(inline=False)
 
 
37
 
38
  examples = ['rock.jpg', 'paper.jpg', 'scissor.jpg']
39
 
40
+ intf = gr.Interface(fn=play_game, inputs=image, outputs=label, examples=examples, capture_session=True)
41
+ intf.blocks[0].block_id = 0 # Unique ID for the image input block
42
+ intf.blocks[1].block_id = 1 # Unique ID for the label output block
43
  intf.launch(inline=False)
44
+