lgaleana commited on
Commit
db9c02a
1 Parent(s): d371605
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -150,27 +150,27 @@ def execute_task(id_: int, prompt: str, *vars):
150
 
151
  with gr.Blocks() as demo:
152
  # Initial layout
 
 
 
 
 
 
 
 
 
 
153
  for i in all_inputs.values():
154
  i.render()
155
- input_error = gr.HighlightedText(
156
- [("Repeated variable names in inputs. Please pick different names.", "Error")],
157
- show_label=False,
158
- visible=False,
159
- )
160
  with gr.Row():
161
  add_input_btn = gr.Button("Add input variable")
162
  remove_input_btn = gr.Button("Remove input variable")
163
- execute_btn = gr.Button("Execute")
164
  for t in all_tasks.values():
165
  t.render()
166
- task_error = gr.HighlightedText(
167
- [("Repeated variable names in tasks. Please pick different names.", "Error")],
168
- show_label=False,
169
- visible=False,
170
- )
171
  with gr.Row():
172
  add_task_btn = gr.Button("Add task")
173
  remove_task_btn = gr.Button("Remove task")
 
174
 
175
  # Edit layout
176
  add_input_btn.click(
 
150
 
151
  with gr.Blocks() as demo:
152
  # Initial layout
153
+ gr.Markdown("""
154
+ # Toolkit
155
+ Define input variables to be used in your tasks.
156
+ <br>Task outputs can be used in subsequent tasks.
157
+ <br>
158
+ <br>AI tasks call into ChatGPT to perform actions.
159
+ <br>Chain inputs and tasks to build an E2E application.
160
+ <br>
161
+ <br>Example prompt: "Translate the following text into spanish and add {v0} more sentences: {t0}".
162
+ """)
163
  for i in all_inputs.values():
164
  i.render()
 
 
 
 
 
165
  with gr.Row():
166
  add_input_btn = gr.Button("Add input variable")
167
  remove_input_btn = gr.Button("Remove input variable")
 
168
  for t in all_tasks.values():
169
  t.render()
 
 
 
 
 
170
  with gr.Row():
171
  add_task_btn = gr.Button("Add task")
172
  remove_task_btn = gr.Button("Remove task")
173
+ execute_btn = gr.Button("Execute")
174
 
175
  # Edit layout
176
  add_input_btn.click(