research14 commited on
Commit
bfdd479
·
1 Parent(s): 0f6dbec

testing with other models

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -296,8 +296,8 @@ def interface():
296
  # outputs=[task, task_prompt, vicuna_S3_chatbot])
297
 
298
  # Event Handler for LLaMA Chatbot POS/Chunk
299
- # task_btn.click(llama_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, llama_S1_chatbot],
300
- # outputs=[task, task_prompt, llama_S1_chatbot])
301
  # task_btn.click(llama_strategies_respond, inputs=[strategy2, task, task_linguistic_entities, task_prompt, llama_S2_chatbot],
302
  # outputs=[task, task_prompt, llama_S2_chatbot])
303
  # task_btn.click(llama_strategies_respond, inputs=[strategy3, task, task_linguistic_entities, task_prompt, llama_S3_chatbot],
@@ -306,12 +306,13 @@ def interface():
306
  # Event Handler for GPT 3.5 Chatbot POS/Chunk, user must submit api key before submitting the prompt
307
  # Will activate after getting API key
308
  # task_apikey_btn.click(update_api_key, inputs=ling_ents_apikey_input)
309
- task_btn.click(gpt_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, gpt_S1_chatbot],
310
- outputs=[task, task_prompt, gpt_S1_chatbot])
311
- task_btn.click(gpt_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, gpt_S2_chatbot],
312
- outputs=[task, task_prompt, gpt_S2_chatbot])
313
- task_btn.click(gpt_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, gpt_S3_chatbot],
314
- outputs=[task, task_prompt, gpt_S3_chatbot])
 
315
 
316
 
317
 
 
296
  # outputs=[task, task_prompt, vicuna_S3_chatbot])
297
 
298
  # Event Handler for LLaMA Chatbot POS/Chunk
299
+ task_btn.click(llama_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, llama_S1_chatbot],
300
+ outputs=[task, task_prompt, llama_S1_chatbot])
301
  # task_btn.click(llama_strategies_respond, inputs=[strategy2, task, task_linguistic_entities, task_prompt, llama_S2_chatbot],
302
  # outputs=[task, task_prompt, llama_S2_chatbot])
303
  # task_btn.click(llama_strategies_respond, inputs=[strategy3, task, task_linguistic_entities, task_prompt, llama_S3_chatbot],
 
306
  # Event Handler for GPT 3.5 Chatbot POS/Chunk, user must submit api key before submitting the prompt
307
  # Will activate after getting API key
308
  # task_apikey_btn.click(update_api_key, inputs=ling_ents_apikey_input)
309
+ if (have_key.value == "Yes"):
310
+ task_btn.click(gpt_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, gpt_S1_chatbot],
311
+ outputs=[task, task_prompt, gpt_S1_chatbot])
312
+ task_btn.click(gpt_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, gpt_S2_chatbot],
313
+ outputs=[task, task_prompt, gpt_S2_chatbot])
314
+ task_btn.click(gpt_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, gpt_S3_chatbot],
315
+ outputs=[task, task_prompt, gpt_S3_chatbot])
316
 
317
 
318