marcelbinz commited on
Commit
48f96e6
·
verified ·
1 Parent(s): 601ff72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -5
app.py CHANGED
@@ -31,10 +31,24 @@ pipe = pipeline(
31
  def infer(prompt):
32
  return pipe(prompt, max_new_tokens=1, do_sample=True, temperature=1.0, return_full_text=False)[0]["generated_text"]
33
 
34
- default_experiment = """Test
35
- 1
36
- 2
37
- 3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  """
39
 
40
  with gr.Blocks(
@@ -50,7 +64,7 @@ with gr.Blocks(
50
  gr.Image(
51
  value="https://marcelbinz.github.io/imgs/centaur.png",
52
  show_label=False,
53
- height=100,
54
  container=False,
55
  elem_classes="mx-auto", # centres the image
56
  )
 
31
  def infer(prompt):
32
  return pipe(prompt, max_new_tokens=1, do_sample=True, temperature=1.0, return_full_text=False)[0]["generated_text"]
33
 
34
+ default_experiment = """You will take part in a Social Prediction Game.
35
+ You will observe a Player playing against an Opponent in different games.
36
+ In each game, the Player and the Opponent simultaneously choose between option J and option Z.
37
+ The Player and the Opponent win points based on their choices.
38
+ The rules change between games, and you will be informed about them before each game.
39
+ The Player varies between blocks but is consistent across games within a block.
40
+ The Opponent switches in each game.
41
+ Your task is to predict the choices made by the Player and rate your confidence in this prediction on an 11-point scale from 0 to 100 (in increments of 10).
42
+ You get feedback after each game on whether your prediction was correct or not.
43
+
44
+ Block 1 starts now.
45
+
46
+ The rules of the game are as follows:
47
+ If Player chooses option J and Opponent chooses option J, then Player wins 10 points and Opponent wins 10 points.
48
+ If Player chooses option J and Opponent chooses option Z, then Player wins 3 points and Opponent wins 12 points.
49
+ If Player chooses option Z and Opponent chooses option J, then Player wins 12 points and Opponent wins 3 points.
50
+ If Player chooses option Z and Opponent chooses option Z, then Player wins 5 points and Opponent wins 5 points.
51
+ You predict that Player will choose option <<
52
  """
53
 
54
  with gr.Blocks(
 
64
  gr.Image(
65
  value="https://marcelbinz.github.io/imgs/centaur.png",
66
  show_label=False,
67
+ height=180,
68
  container=False,
69
  elem_classes="mx-auto", # centres the image
70
  )