research14 commited on
Commit
e2a4e59
·
1 Parent(s): 8598b8b

fixed get value from prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -150,7 +150,7 @@ 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.content['value']
154
 
155
  btn.click(lambda _,
156
  message=textbox_prompt: linguistic_features_textbox.update(linguistic_features(textbox_content)),
 
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)),