arham061 commited on
Commit
53d11fc
1 Parent(s): 215797e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -32,8 +32,9 @@ def play_game(img):
32
  return f"User's choice: {user_choice}\nComputer's choice: {computer_choice}\n{winner}", computer_image
33
 
34
 
35
- image = gr.inputs.Image(shape=(192, 192))
36
- label = gr.outputs.Label()
 
37
  examples = ['rock.jpg', 'paper.jpg', 'scissor.jpg']
38
 
39
  intf = gr.Interface(fn=play_game, inputs=image, outputs=[label, image])
 
32
  return f"User's choice: {user_choice}\nComputer's choice: {computer_choice}\n{winner}", computer_image
33
 
34
 
35
+ image = gr.inputs.Image(shape=(192, 192), label="User's Image")
36
+ 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])