research14 commited on
Commit
5359f07
1 Parent(s): e1b515c

updated input for showing user prompt

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -232,7 +232,7 @@ def interface():
232
  def update_textbox(prompt):
233
  return prompt
234
 
235
- ling_ents_btn.click(fn=update_textbox, inputs=user_prompt_1, outputs=user_prompt_1, api_name="ling_ents_btn")
236
 
237
  # Event Handler for GPT 3.5 Chatbot
238
  ling_ents_btn.click(gpt_respond, inputs=[have_key2, linguistic_entities, ling_ents_prompt, gpt_ling_ents_chatbot],
@@ -320,7 +320,7 @@ def interface():
320
  def update_textbox(prompt):
321
  return prompt
322
 
323
- task_btn.click(fn=update_textbox, inputs=user_prompt_2, outputs=user_prompt_2, api_name="task_btn")
324
 
325
  # Event Handler for GPT 3.5 Chatbot POS/Chunk, user must submit api key before submitting the prompt
326
  # Will activate after getting API key
 
232
  def update_textbox(prompt):
233
  return prompt
234
 
235
+ ling_ents_btn.click(fn=update_textbox, inputs=ling_ents_prompt, outputs=user_prompt_1, api_name="ling_ents_btn")
236
 
237
  # Event Handler for GPT 3.5 Chatbot
238
  ling_ents_btn.click(gpt_respond, inputs=[have_key2, linguistic_entities, ling_ents_prompt, gpt_ling_ents_chatbot],
 
320
  def update_textbox(prompt):
321
  return prompt
322
 
323
+ task_btn.click(fn=update_textbox, inputs=task_prompt, outputs=user_prompt_2, api_name="task_btn")
324
 
325
  # Event Handler for GPT 3.5 Chatbot POS/Chunk, user must submit api key before submitting the prompt
326
  # Will activate after getting API key