Spaces:
Sleeping
Sleeping
prabinpanta0
commited on
Commit
•
e617744
1
Parent(s):
1c50fd5
Update app.py
Browse files
app.py
CHANGED
@@ -59,21 +59,21 @@ def generate(text):
|
|
59 |
except Exception as e:
|
60 |
return str(e)
|
61 |
|
62 |
-
# Custom HTML and JavaScript for "Copy to Clipboard" functionality
|
63 |
-
js = """
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
"""
|
71 |
|
72 |
iface = gr.Interface(
|
73 |
fn=generate,
|
74 |
-
|
75 |
inputs=gr.Textbox(lines=2, placeholder="Enter text here..."),
|
76 |
-
outputs="text"
|
77 |
title="Chuunibyou Text Generator",
|
78 |
description="Transform text into an elaborate and formal style with a nobleman tone.",
|
79 |
live=False
|
|
|
59 |
except Exception as e:
|
60 |
return str(e)
|
61 |
|
62 |
+
# # Custom HTML and JavaScript for "Copy to Clipboard" functionality
|
63 |
+
# js = """
|
64 |
|
65 |
+
# function copyToClipboard() {
|
66 |
+
# var copyText = document.getElementById("output-textbox");
|
67 |
+
# copyText.select();
|
68 |
+
# document.execCommand("copy");
|
69 |
+
# }
|
70 |
+
# """
|
71 |
|
72 |
iface = gr.Interface(
|
73 |
fn=generate,
|
74 |
+
|
75 |
inputs=gr.Textbox(lines=2, placeholder="Enter text here..."),
|
76 |
+
outputs="text",
|
77 |
title="Chuunibyou Text Generator",
|
78 |
description="Transform text into an elaborate and formal style with a nobleman tone.",
|
79 |
live=False
|