kn404 commited on
Commit
f213480
Β·
1 Parent(s): 0f652c7

move instsructions

Browse files
Files changed (1) hide show
  1. app.py +25 -25
app.py CHANGED
@@ -129,6 +129,31 @@ with gr.Blocks(
129
  </div>
130
  """, elem_classes="home-banner")
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  # Main input interface
133
  with gr.Row(equal_height=True):
134
  with gr.Column(scale=3):
@@ -162,31 +187,6 @@ with gr.Blocks(
162
  reset_button = gr.Button("Reset", min_width=0, elem_id="reset-button")
163
  run_button = gr.Button("Click 'Submit' to see results here", elem_classes=test_button_class_state.value, min_width=320)
164
 
165
-
166
- with gr.Row(equal_height=False):
167
- with gr.Column(scale=2):
168
- with gr.Accordion("API Key", open=False):
169
- gr.Markdown("""
170
- ## Get an API Key
171
- * [Create an account here](https://explorer.invariantlabs.ai/settings) by clicking 'Sign In', and then the GitHub icon.
172
- * Click on `Get API Key` to get your Invariant API key.
173
- * Paste the API key in the text box above.
174
- """
175
- )
176
-
177
- with gr.Column(scale=3):
178
- with gr.Accordion("Task Description", open=False):
179
- gr.Markdown("""
180
- ## Prompt the Santa Agent
181
- The Invariant Santa Agent is tasked with delivering presents to children and performing various Santa tasks.
182
- Your job is to provide the system prompt that will guide the Santa Agent to complete its tasks:\n
183
- * Change the `System Prompt` to modify the behavior of the Santa Agent.
184
- * Click `Submit` to test the Santa Agent with the new system prompt.
185
- * Find a system prompt that passes all the tests.
186
- * When the tests are done running, view your results in the Invariant Explorer by clicking `Open results`.
187
- * Click `Reset` to start over.
188
- """
189
- )
190
 
191
  submit_button.click(
192
  fn=run_testing,
 
129
  </div>
130
  """, elem_classes="home-banner")
131
 
132
+ with gr.Row(equal_height=False):
133
+ with gr.Column(scale=2):
134
+ with gr.Accordion("πŸ”‘ Instructions on getting an API Key", open=False):
135
+ gr.Markdown("""
136
+ ## Get an API Key
137
+ * [Create an account here](https://explorer.invariantlabs.ai/settings) by clicking 'Sign In', and then the GitHub icon.
138
+ * Click on `Get API Key` to get your Invariant API key.
139
+ * Paste the API key in the text box below.
140
+ """
141
+ )
142
+
143
+ with gr.Column(scale=3):
144
+ with gr.Accordion("πŸ“ Task Description", open=False):
145
+ gr.Markdown("""
146
+ ## Prompt the Santa Agent
147
+ The Invariant Santa Agent is tasked with delivering presents to children and performing various Santa tasks.
148
+ Your job is to provide the system prompt that will guide the Santa Agent to complete its tasks:\n
149
+ * Change the `System Prompt` to modify the behavior of the Santa Agent.
150
+ * Click `Submit` to test the Santa Agent with the new system prompt.
151
+ * Find a system prompt that passes all the tests.
152
+ * When the tests are done running, view your results in the Invariant Explorer by clicking `Open results`.
153
+ * Click `Reset` to start over.
154
+ """
155
+ )
156
+
157
  # Main input interface
158
  with gr.Row(equal_height=True):
159
  with gr.Column(scale=3):
 
187
  reset_button = gr.Button("Reset", min_width=0, elem_id="reset-button")
188
  run_button = gr.Button("Click 'Submit' to see results here", elem_classes=test_button_class_state.value, min_width=320)
189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
 
191
  submit_button.click(
192
  fn=run_testing,