Yaron Koresh commited on
Commit
1218524
·
verified ·
1 Parent(s): 605dda0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,9 +96,9 @@ css="""
96
  """
97
 
98
  js="""
99
- function createGradioPromptEvent() {
100
  document.querySelector("div#prompt input").setAttribute(maxlength,"38")
101
- }
102
  """
103
 
104
  if torch.cuda.is_available():
 
96
  """
97
 
98
  js="""
99
+ document.addEventListener("load",function(e){
100
  document.querySelector("div#prompt input").setAttribute(maxlength,"38")
101
+ });
102
  """
103
 
104
  if torch.cuda.is_available():