Spaces:
Sleeping
Sleeping
Improve readability and contrast
Browse files
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 |
-
|
285 |
-
output,
|
286 |
-
|
287 |
-
|
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
|