Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ 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
|
| 42 |
You get feedback after each game on whether your prediction was correct or not.
|
| 43 |
|
| 44 |
Block 1 starts now.
|
|
@@ -54,7 +54,7 @@ You predict that Player will choose option <<
|
|
| 54 |
with gr.Blocks(
|
| 55 |
fill_width=True,
|
| 56 |
css="""
|
| 57 |
-
#prompt-box textarea {height:
|
| 58 |
#answer-box textarea {height:320px}
|
| 59 |
#info-box {margin-bottom: 1rem} /* a little spacing */
|
| 60 |
"""
|
|
@@ -86,7 +86,7 @@ with gr.Blocks(
|
|
| 86 |
with gr.Row(equal_height=True):
|
| 87 |
inp = gr.Textbox(
|
| 88 |
label="Prompt", elem_id="prompt-box",
|
| 89 |
-
lines=
|
| 90 |
)
|
| 91 |
outp = gr.Textbox(
|
| 92 |
label="Response", elem_id="answer-box",
|
|
|
|
| 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.
|
| 42 |
You get feedback after each game on whether your prediction was correct or not.
|
| 43 |
|
| 44 |
Block 1 starts now.
|
|
|
|
| 54 |
with gr.Blocks(
|
| 55 |
fill_width=True,
|
| 56 |
css="""
|
| 57 |
+
#prompt-box textarea {height:320px}
|
| 58 |
#answer-box textarea {height:320px}
|
| 59 |
#info-box {margin-bottom: 1rem} /* a little spacing */
|
| 60 |
"""
|
|
|
|
| 86 |
with gr.Row(equal_height=True):
|
| 87 |
inp = gr.Textbox(
|
| 88 |
label="Prompt", elem_id="prompt-box",
|
| 89 |
+
lines=20, max_lines=20, scale=3, value=default_experiment
|
| 90 |
)
|
| 91 |
outp = gr.Textbox(
|
| 92 |
label="Response", elem_id="answer-box",
|