MatteoScript commited on
Commit
c2534f5
1 Parent(s): d24ea77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -155,7 +155,7 @@ def audioRec():
155
  print(text)
156
  js = f"""
157
  <script>
158
- var chatInput = parent.document.querySelector('textarea[data-testid="stChatInputTextArea"]');
159
  var nativeInputValueSetter = Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype, "value").set;
160
  nativeInputValueSetter.call(chatInput, "{text}");
161
  var event = new Event('input', {{ bubbles: true}});
 
155
  print(text)
156
  js = f"""
157
  <script>
158
+ var chatInput = parent.document.querySelector('textarea[data-testid="stChatInput"]');
159
  var nativeInputValueSetter = Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype, "value").set;
160
  nativeInputValueSetter.call(chatInput, "{text}");
161
  var event = new Event('input', {{ bubbles: true}});