research14 commited on
Commit
e02ba6b
·
1 Parent(s): e870f88

more components to clear button, strat change gpt

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -231,7 +231,7 @@ def interface():
231
  vicuna_S3_chatbot = gr.Chatbot(label="vicuna-7b")
232
  llama_S3_chatbot = gr.Chatbot(label="llama-7b")
233
  gpt_S3_chatbot = gr.Chatbot(label="gpt-3.5")
234
- clear_all = gr.ClearButton(components=[task_prompt, task_apikey_input,
235
  vicuna_S1_chatbot, llama_S1_chatbot, gpt_S1_chatbot,
236
  vicuna_S2_chatbot, llama_S2_chatbot, gpt_S2_chatbot,
237
  vicuna_S3_chatbot, llama_S3_chatbot, gpt_S3_chatbot])
@@ -261,9 +261,9 @@ def interface():
261
  # task_apikey_btn.click(update_api_key, inputs=ling_ents_apikey_input)
262
  task_btn.click(gpt_strategies_respond, inputs=[have_key, strategy1, task, task_linguistic_entities, task_prompt, gpt_S1_chatbot],
263
  outputs=[task_prompt, gpt_S1_chatbot])
264
- task_btn.click(gpt_strategies_respond, inputs=[have_key, strategy1, task, task_linguistic_entities, task_prompt, gpt_S2_chatbot],
265
  outputs=[task_prompt, gpt_S2_chatbot])
266
- task_btn.click(gpt_strategies_respond, inputs=[have_key, strategy1, task, task_linguistic_entities, task_prompt, gpt_S3_chatbot],
267
  outputs=[task_prompt, gpt_S3_chatbot])
268
 
269
 
 
231
  vicuna_S3_chatbot = gr.Chatbot(label="vicuna-7b")
232
  llama_S3_chatbot = gr.Chatbot(label="llama-7b")
233
  gpt_S3_chatbot = gr.Chatbot(label="gpt-3.5")
234
+ clear_all = gr.ClearButton(components=[task_prompt, task_apikey_input, have_key, task, task_linguistic_entities,
235
  vicuna_S1_chatbot, llama_S1_chatbot, gpt_S1_chatbot,
236
  vicuna_S2_chatbot, llama_S2_chatbot, gpt_S2_chatbot,
237
  vicuna_S3_chatbot, llama_S3_chatbot, gpt_S3_chatbot])
 
261
  # task_apikey_btn.click(update_api_key, inputs=ling_ents_apikey_input)
262
  task_btn.click(gpt_strategies_respond, inputs=[have_key, strategy1, task, task_linguistic_entities, task_prompt, gpt_S1_chatbot],
263
  outputs=[task_prompt, gpt_S1_chatbot])
264
+ task_btn.click(gpt_strategies_respond, inputs=[have_key, strategy2, task, task_linguistic_entities, task_prompt, gpt_S2_chatbot],
265
  outputs=[task_prompt, gpt_S2_chatbot])
266
+ task_btn.click(gpt_strategies_respond, inputs=[have_key, strategy3, task, task_linguistic_entities, task_prompt, gpt_S3_chatbot],
267
  outputs=[task_prompt, gpt_S3_chatbot])
268
 
269