Gen-Sim commited on
Commit
c615281
1 Parent(s): 72a0418

remove bottomup mode

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -120,8 +120,8 @@ def setup(api_key, option_choice, model_choice, target_task_name):
120
 
121
  if option_choice == 'top-down':
122
  info = demo_runner.setup_top_down(api_key, target_task_name, model_choice) + option_choice
123
- elif option_choice == 'bottom-up':
124
- info = demo_runner.setup(api_key, model_choice) + option_choice
125
  else:
126
  raise NotImplementedError
127
  return info, demo_runner
@@ -158,7 +158,7 @@ if __name__ == '__main__':
158
  inp_api_key = gr.Textbox(label='OpenAI API Key (this is not stored anywhere)', lines=1)
159
 
160
  model_choice = gr.Radio(["gpt-3.5-turbo-16k", "gpt-4"], label="Which model?", interactive=True)
161
- option_choice = gr.Radio(["bottom-up", "top-down"], label="Which mode?", interactive=True)
162
  inp_instruction = gr.Textbox(label='Target Task Name (if top-down)', lines=1)
163
  info_setup = gr.Markdown(label='Setup Info')
164
  btn_setup = gr.Button("Setup/Reset Simulation")
 
120
 
121
  if option_choice == 'top-down':
122
  info = demo_runner.setup_top_down(api_key, target_task_name, model_choice) + option_choice
123
+ # elif option_choice == 'bottom-up':
124
+ # info = demo_runner.setup(api_key, model_choice) + option_choice
125
  else:
126
  raise NotImplementedError
127
  return info, demo_runner
 
158
  inp_api_key = gr.Textbox(label='OpenAI API Key (this is not stored anywhere)', lines=1)
159
 
160
  model_choice = gr.Radio(["gpt-3.5-turbo-16k", "gpt-4"], label="Which model?", interactive=True)
161
+ option_choice = gr.Radio(["top-down"], label="Which mode?", interactive=True)
162
  inp_instruction = gr.Textbox(label='Target Task Name (if top-down)', lines=1)
163
  info_setup = gr.Markdown(label='Setup Info')
164
  btn_setup = gr.Button("Setup/Reset Simulation")