natgluons commited on
Commit
e3378e2
·
1 Parent(s): c6a39fc

Improve readability and contrast

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -280,16 +280,12 @@ with gr.Blocks(theme=gr.themes.Soft(), css=custom_css) as demo:
280
  outputs=output
281
  )
282
 
 
283
  copy_btn.click(
284
- None,
285
- output,
286
- None,
287
- _js="""
288
- (text) => {
289
- navigator.clipboard.writeText(text);
290
- return [];
291
- }
292
- """
293
  )
294
 
295
  # Footer with custom class
 
280
  outputs=output
281
  )
282
 
283
+ # Updated copy functionality
284
  copy_btn.click(
285
+ fn=lambda x: x,
286
+ inputs=[output],
287
+ outputs=[],
288
+ js="(text) => { navigator.clipboard.writeText(text); }"
 
 
 
 
 
289
  )
290
 
291
  # Footer with custom class