Spaces:
Running
Running
Commit
·
e057da0
1
Parent(s):
c9d2369
Minor fixes.
Browse files- app.py +1 -1
- programmer.py +1 -0
app.py
CHANGED
@@ -193,7 +193,7 @@ def main():
|
|
193 |
|
194 |
yield gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True), cost_data, cost_data_formatted, gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update()
|
195 |
|
196 |
-
button.click(respond, [chosen_task, custom_task, alice_model_dd, bob_model_dd], [button, alice_model_dd, bob_model_dd, chatbot_nl, chatbot_nl_raw, chatbot_negotiation, structured_communication, structured_communication_raw, protocol_result, alice_implementation, bob_implementation])
|
197 |
|
198 |
demo.launch()
|
199 |
|
|
|
193 |
|
194 |
yield gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True), cost_data, cost_data_formatted, gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update(), gr.update()
|
195 |
|
196 |
+
button.click(respond, [chosen_task, custom_task, alice_model_dd, bob_model_dd, query_slider], [button, alice_model_dd, bob_model_dd, cost_info, cost_display, chatbot_nl, chatbot_nl_raw, chatbot_negotiation, structured_communication, structured_communication_raw, protocol_result, protocol_hash_result, alice_implementation, bob_implementation])
|
197 |
|
198 |
demo.launch()
|
199 |
|
programmer.py
CHANGED
@@ -78,6 +78,7 @@ Rules:
|
|
78 |
- If there is an unexpected error that is not covered by the protocol, throw an exception.\
|
79 |
If instead the protocol specifies how to handle the error, return the response according to the protocol's specification.
|
80 |
- Do not execute anything (aside from library imports) when the file itself is loaded. I will personally import the file and call the reply function with the task data.
|
|
|
81 |
Begin by thinking about the implementation and how you would structure the code. \
|
82 |
Then, write your implementation by writing a code block that contains the tags <IMPLEMENTATION> and </IMPLEMENTATION>. For example:
|
83 |
```python
|
|
|
78 |
- If there is an unexpected error that is not covered by the protocol, throw an exception.\
|
79 |
If instead the protocol specifies how to handle the error, return the response according to the protocol's specification.
|
80 |
- Do not execute anything (aside from library imports) when the file itself is loaded. I will personally import the file and call the reply function with the task data.
|
81 |
+
- Do not import the tools; assume that they are already available in the environment.
|
82 |
Begin by thinking about the implementation and how you would structure the code. \
|
83 |
Then, write your implementation by writing a code block that contains the tags <IMPLEMENTATION> and </IMPLEMENTATION>. For example:
|
84 |
```python
|