research14 commited on
Commit
63aea7f
·
1 Parent(s): e2a4e59
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -150,12 +150,11 @@ def interface():
150
 
151
  #textbox_prompt.submit(llama_respond, inputs=[textbox_prompt, llama_S1_chatbot], outputs=[textbox_prompt, llama_S1_chatbot])
152
 
153
- textbox_content = textbox_prompt.value
154
-
155
  btn.click(lambda _,
156
- message=textbox_prompt: linguistic_features_textbox.update(linguistic_features(textbox_content)),
157
- inputs=[textbox_content],
158
  outputs=[linguistic_features_textbox])
 
159
 
160
  btn.click(vicuna_respond, inputs=[tab_name, textbox_prompt, vicuna_S1_chatbot],
161
  outputs=[tab_name, textbox_prompt, vicuna_S1_chatbot])
 
150
 
151
  #textbox_prompt.submit(llama_respond, inputs=[textbox_prompt, llama_S1_chatbot], outputs=[textbox_prompt, llama_S1_chatbot])
152
 
 
 
153
  btn.click(lambda _,
154
+ message=textbox_prompt: linguistic_features_textbox.update(linguistic_features(message)),
155
+ inputs=[textbox_prompt],
156
  outputs=[linguistic_features_textbox])
157
+
158
 
159
  btn.click(vicuna_respond, inputs=[tab_name, textbox_prompt, vicuna_S1_chatbot],
160
  outputs=[tab_name, textbox_prompt, vicuna_S1_chatbot])