paulcalzada commited on
Commit
3eb27e2
·
verified ·
1 Parent(s): 7b7073c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -99,8 +99,6 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)") as demo:
99
 
100
  # --- Back-end copy function ---
101
  def copy_to_clipboard_fn(text):
102
- # This function simply returns the text passed to it.
103
- # This is a safe way to trigger the JS event on the client side
104
  return text
105
 
106
  run_btn.click(
@@ -109,8 +107,6 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)") as demo:
109
  outputs=[out_code, retrieved_list, retrieved_raw]
110
  )
111
 
112
- # This is the key change. We use the most basic form of a click event,
113
- # which is guaranteed to work even on older Gradio versions.
114
  copy_button.click(
115
  fn=copy_to_clipboard_fn,
116
  inputs=[out_code],
 
99
 
100
  # --- Back-end copy function ---
101
  def copy_to_clipboard_fn(text):
 
 
102
  return text
103
 
104
  run_btn.click(
 
107
  outputs=[out_code, retrieved_list, retrieved_raw]
108
  )
109
 
 
 
110
  copy_button.click(
111
  fn=copy_to_clipboard_fn,
112
  inputs=[out_code],