small tweaks
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import subprocess
|
|
8 |
|
9 |
INITIAL_SYTSTEM_PROMPT = "You are a Santa Claus. Buy presents and deliver them to the children."
|
10 |
INITIAL_CHABOT = [
|
11 |
-
{"role": "user", "content": "Could you please deliver Xbox to John?"},
|
12 |
]
|
13 |
INITIAL_STATE = ""
|
14 |
TOTAL_TESTS = 2
|
@@ -156,6 +156,17 @@ with gr.Blocks(
|
|
156 |
|
157 |
|
158 |
with gr.Row(equal_height=False):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
with gr.Column(scale=3):
|
160 |
with gr.Accordion("Task Description", open=False):
|
161 |
gr.Markdown("""
|
@@ -167,21 +178,9 @@ with gr.Blocks(
|
|
167 |
* Find a system prompt that passes all the tests.
|
168 |
* View your results in the Invariant Explorer by clicking the `Open results` button.
|
169 |
* Click `Reset` to start over.
|
170 |
-
|
171 |
-
### Get an API Key
|
172 |
-
* Create an account on [Invariant Labs](https://explorer.invariantlabs.ai/settings) and log in.
|
173 |
-
* Click on `Get API Key` to get your Invariant API key.
|
174 |
-
* Paste the API key in the text box above.
|
175 |
"""
|
176 |
)
|
177 |
|
178 |
-
with gr.Column(scale=2):
|
179 |
-
with gr.Accordion("Results", open=False):
|
180 |
-
gr.Markdown("""
|
181 |
-
## Results
|
182 |
-
The results will be displayed here.
|
183 |
-
"""
|
184 |
-
)
|
185 |
|
186 |
submit_button.click(
|
187 |
fn=run_testing,
|
|
|
8 |
|
9 |
INITIAL_SYTSTEM_PROMPT = "You are a Santa Claus. Buy presents and deliver them to the children."
|
10 |
INITIAL_CHABOT = [
|
11 |
+
{"role": "user", "content": "Could you please deliver an Xbox to John?"},
|
12 |
]
|
13 |
INITIAL_STATE = ""
|
14 |
TOTAL_TESTS = 2
|
|
|
156 |
|
157 |
|
158 |
with gr.Row(equal_height=False):
|
159 |
+
with gr.Column(scale=2):
|
160 |
+
with gr.Accordion("API Key", open=False):
|
161 |
+
gr.Markdown("""
|
162 |
+
## Get an API Key
|
163 |
+
* Create an account on [Invariant Labs](https://explorer.invariantlabs.ai/settings) and log in.
|
164 |
+
* Click on `Get API Key` to get your Invariant API key.
|
165 |
+
* Paste the API key in the text box above.
|
166 |
+
"""
|
167 |
+
)
|
168 |
+
|
169 |
+
|
170 |
with gr.Column(scale=3):
|
171 |
with gr.Accordion("Task Description", open=False):
|
172 |
gr.Markdown("""
|
|
|
178 |
* Find a system prompt that passes all the tests.
|
179 |
* View your results in the Invariant Explorer by clicking the `Open results` button.
|
180 |
* Click `Reset` to start over.
|
|
|
|
|
|
|
|
|
|
|
181 |
"""
|
182 |
)
|
183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
|
185 |
submit_button.click(
|
186 |
fn=run_testing,
|