CultriX commited on
Commit
2c46896
·
verified ·
1 Parent(s): a685652

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -111,21 +111,21 @@ iface = gr.Interface(
111
  inputs=[
112
  gr.Textbox(label="OpenAI API Key", type="password", placeholder="Enter your OpenAI API Key"),
113
  gr.Textbox(label="Primary Agent System Message", placeholder="Enter the system message for the primary agent", value="You are a creative assistant focused on producing high-quality code."),
114
- gr.Textbox(label="Critic Agent System Message", placeholder="Enter the system message for the critic agent (requires APPROVAL tag!)", value="Critic. You are a helpful assistant highly skilled in evaluating the quality of a given code or response. Provide constructive feedback and respond with 'APPROVE' once the feedback is addressed."),
115
  gr.Textbox(label="Documentation Agent System Message", placeholder="Enter the system message for the documentation agent", value="You are a documentation assistant. Write a short and concise '--help' message for the provided code."),
116
  gr.Textbox(label="Task Message", placeholder="Code a random password generator using python."),
117
  ],
118
  outputs=[
119
- gr.Textbox(label="Primary Assistant Messages"),
120
- gr.Textbox(label="Critic Messages"),
121
- gr.Textbox(label="Documentation Messages"),
122
  ],
123
  title="Team Workflow with Documentation Agent and Hard Cap",
124
  description="""Collaborative workflow between Primary, Critic, and Documentation agents.
125
  1. The user can send a prompt to the primary agent.
126
  2. The response will then be evaluated by the critic, which either sends feedback back to the primary agent or gives the APPROVAL sign.
127
  3. If the APPROVAL sign is given, the documentation agent is asked to write a short documentation for the code (that has been approved by the critic and generated by the priamry agent.
128
- (Note: There is a hard cap of 10 messages for the critic to approve the output of the primary agent. If it fails to do so the workflow is interrupted to prevent long loops)"""
129
  )
130
 
131
  # Launch the app
 
111
  inputs=[
112
  gr.Textbox(label="OpenAI API Key", type="password", placeholder="Enter your OpenAI API Key"),
113
  gr.Textbox(label="Primary Agent System Message", placeholder="Enter the system message for the primary agent", value="You are a creative assistant focused on producing high-quality code."),
114
+ gr.Textbox(label="Critic Agent System Message", placeholder="Enter the system message for the critic agent (requires APPROVAL tag!)", value="You are a critic assistant highly skilled in evaluating the quality of a given code or response. Provide constructive feedback and respond with 'APPROVE' once the feedback is addressed."),
115
  gr.Textbox(label="Documentation Agent System Message", placeholder="Enter the system message for the documentation agent", value="You are a documentation assistant. Write a short and concise '--help' message for the provided code."),
116
  gr.Textbox(label="Task Message", placeholder="Code a random password generator using python."),
117
  ],
118
  outputs=[
119
+ gr.Textbox(label="The Primary Assistant Messages"),
120
+ gr.Textbox(label="The Critics Assistant Messages"),
121
+ gr.Textbox(label="The Documentation Assistant Message"),
122
  ],
123
  title="Team Workflow with Documentation Agent and Hard Cap",
124
  description="""Collaborative workflow between Primary, Critic, and Documentation agents.
125
  1. The user can send a prompt to the primary agent.
126
  2. The response will then be evaluated by the critic, which either sends feedback back to the primary agent or gives the APPROVAL sign.
127
  3. If the APPROVAL sign is given, the documentation agent is asked to write a short documentation for the code (that has been approved by the critic and generated by the priamry agent.
128
+ 4. (Note: There is a hard cap of 10 messages for the critic to approve the output of the primary agent. If it fails to do so the workflow is interrupted to prevent long loops)"""
129
  )
130
 
131
  # Launch the app