Spaces:
Runtime error
Runtime error
Commit
·
8598b8b
1
Parent(s):
3834199
update btn click for lftk
Browse files
app.py
CHANGED
|
@@ -150,9 +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 |
btn.click(lambda _,
|
| 154 |
-
message=textbox_prompt: linguistic_features_textbox.update(linguistic_features(
|
| 155 |
-
inputs=[
|
| 156 |
outputs=[linguistic_features_textbox])
|
| 157 |
|
| 158 |
btn.click(vicuna_respond, inputs=[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 |
+
textbox_content = textbox_prompt.content['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],
|