paulcalzada commited on
Commit
4c1cfe1
·
verified ·
1 Parent(s): 393128a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -122,7 +122,7 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
122
  outputs=[run_btn, loading_state],
123
  show_progress=False,
124
  js="""
125
- const deepPart = document.getElementById('deep-part');
126
  if (deepPart) {
127
  deepPart.classList.add('deep-hop-away');
128
  }
@@ -136,7 +136,7 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
136
  inputs=[],
137
  outputs=[run_btn, loading_state],
138
  js="""
139
- const deepPart = document.getElementById('deep-part');
140
  if (deepPart) {
141
  deepPart.classList.remove('deep-hop-away');
142
  // This line forces the browser to re-render, ensuring the animation resets
@@ -154,7 +154,7 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
154
  outputs=[],
155
  js="""
156
  (text) => {
157
- const el = document.createElement('textarea');
158
  el.value = text;
159
  document.body.appendChild(el);
160
  el.select();
 
122
  outputs=[run_btn, loading_state],
123
  show_progress=False,
124
  js="""
125
+ var deepPart = document.getElementById('deep-part');
126
  if (deepPart) {
127
  deepPart.classList.add('deep-hop-away');
128
  }
 
136
  inputs=[],
137
  outputs=[run_btn, loading_state],
138
  js="""
139
+ var deepPart = document.getElementById('deep-part');
140
  if (deepPart) {
141
  deepPart.classList.remove('deep-hop-away');
142
  // This line forces the browser to re-render, ensuring the animation resets
 
154
  outputs=[],
155
  js="""
156
  (text) => {
157
+ var el = document.createElement('textarea');
158
  el.value = text;
159
  document.body.appendChild(el);
160
  el.select();